mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-06 17:26:58 +08:00
fix
This commit is contained in:
@@ -55,6 +55,7 @@ func (h *tcpHandler) relay(localConn, remoteConn net.Conn) {
|
||||
closeOnce()
|
||||
} else {
|
||||
localConn.SetDeadline(time.Now())
|
||||
remoteConn.SetDeadline(time.Now())
|
||||
tcpCloseRead(remoteConn)
|
||||
}
|
||||
wg.Done()
|
||||
@@ -65,6 +66,7 @@ func (h *tcpHandler) relay(localConn, remoteConn net.Conn) {
|
||||
closeOnce()
|
||||
} else {
|
||||
localConn.SetDeadline(time.Now())
|
||||
remoteConn.SetDeadline(time.Now())
|
||||
tcpCloseRead(localConn)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user