Browse Source

fix

pull/15/head
Jason 5 years ago
parent
commit
31285989de
  1. 2
      proxy/socks/tcp.go

2
proxy/socks/tcp.go

@ -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)
}

Loading…
Cancel
Save