Rod Hynes hace 11 años
padre
commit
87f56ddff7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      psiphon/socksProxy.go

+ 1 - 1
psiphon/socksProxy.go

@@ -77,7 +77,7 @@ func (proxy *SocksProxy) socksConnectionHandler(localConn *socks.SocksConn) (err
 	defer localConn.Close()
 	defer localConn.Close()
 	defer proxy.openConns.Remove(localConn)
 	defer proxy.openConns.Remove(localConn)
 	proxy.openConns.Add(localConn)
 	proxy.openConns.Add(localConn)
-	// Setting peerConn so localConn.Close() will be called when remoteConn.Close() is called.
+	// Using downstreamConn so localConn.Close() will be called when remoteConn.Close() is called.
 	// This ensures that the downstream client (e.g., web browser) doesn't keep waiting on the
 	// This ensures that the downstream client (e.g., web browser) doesn't keep waiting on the
 	// open connection for data which will never arrive.
 	// open connection for data which will never arrive.
 	remoteConn, err := proxy.tunneler.Dial(localConn.Req.Target, localConn)
 	remoteConn, err := proxy.tunneler.Dial(localConn.Req.Target, localConn)