mirror of
https://github.com/lwch/natpass.git
synced 2026-10-21 04:27:12 +00:00
增加发送disconnect包逻辑
This commit is contained in:
@@ -38,7 +38,7 @@ func (link *Link) Close() {
|
||||
link.closed = true
|
||||
err := link.conn.Close()
|
||||
if err == nil {
|
||||
// link.tunnel.super.SendDisconnect(link.ID, link.target)
|
||||
link.tunnel.super.SendDisconnect(link.ID, link.target)
|
||||
}
|
||||
link.tunnel.Close(link)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user