Просмотр исходного кода

Actually pass custom headers to TCP dial config

Eugene Fryntov 9 лет назад
Родитель
Сommit
b539005b0d
1 измененных файлов с 1 добавлено и 0 удалено
  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
 	dialConfig := &DialConfig{
 		UpstreamProxyUrl:              config.UpstreamProxyUrl,
+		UpstreamProxyCustomHeaders:    config.UpstreamProxyCustomHeaders,
 		ConnectTimeout:                time.Duration(*config.TunnelConnectTimeoutSeconds) * time.Second,
 		PendingConns:                  pendingConns,
 		DeviceBinder:                  config.DeviceBinder,