Browse Source

revert TCPConn to using the previously set custom headers

Michael Goldberger 9 years ago
parent
commit
4a6a820c85
1 changed files with 1 additions and 3 deletions
  1. 1 3
      psiphon/TCPConn.go

+ 1 - 3
psiphon/TCPConn.go

@@ -177,13 +177,11 @@ func proxiedTcpDial(
 		return tcpDial(addr, config, dialResult)
 	}
 
-	dialHeaders, _ := common.UserAgentIfUnset(config.UpstreamProxyCustomHeaders)
-
 	upstreamDialer := upstreamproxy.NewProxyDialFunc(
 		&upstreamproxy.UpstreamProxyConfig{
 			ForwardDialFunc: dialer,
 			ProxyURIString:  config.UpstreamProxyUrl,
-			CustomHeaders:   dialHeaders,
+			CustomHeaders:   config.UpstreamProxyCustomHeaders,
 		})
 	netConn, err := upstreamDialer("tcp", addr)
 	if _, ok := err.(*upstreamproxy.Error); ok {