diff --git a/proxy/socks/tcp.go b/proxy/socks/tcp.go index 35b05f7..21a55ea 100644 --- a/proxy/socks/tcp.go +++ b/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) }