Browse Source

Fix HTTP proxy connect case on Windows

Rod Hynes 11 years ago
parent
commit
054b6d8904
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/TCPConn_windows.go

+ 1 - 1
psiphon/TCPConn_windows.go

@@ -69,7 +69,7 @@ func interruptibleTCPDial(addr string, config *DialConfig) (conn *TCPConn, err e
 		if config.UpstreamHttpProxyAddress != "" {
 		if config.UpstreamHttpProxyAddress != "" {
 			err := HttpProxyConnect(netConn, addr)
 			err := HttpProxyConnect(netConn, addr)
 			if err != nil {
 			if err != nil {
-				return nil, ContextError(err)
+				netConn = nil
 			}
 			}
 		}
 		}