Browse Source

Actually pass custom headers to TCP dial config

Eugene Fryntov 9 years ago
parent
commit
b539005b0d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      psiphon/tunnel.go

+ 1 - 0
psiphon/tunnel.go

@@ -558,6 +558,7 @@ func dialSsh(
 	// Create the base transport: meek or direct connection
 	// Create the base transport: meek or direct connection
 	dialConfig := &DialConfig{
 	dialConfig := &DialConfig{
 		UpstreamProxyUrl:              config.UpstreamProxyUrl,
 		UpstreamProxyUrl:              config.UpstreamProxyUrl,
+		UpstreamProxyCustomHeaders:    config.UpstreamProxyCustomHeaders,
 		ConnectTimeout:                time.Duration(*config.TunnelConnectTimeoutSeconds) * time.Second,
 		ConnectTimeout:                time.Duration(*config.TunnelConnectTimeoutSeconds) * time.Second,
 		PendingConns:                  pendingConns,
 		PendingConns:                  pendingConns,
 		DeviceBinder:                  config.DeviceBinder,
 		DeviceBinder:                  config.DeviceBinder,