Forráskód Böngészése

Merge branch 'master' of https://github.com/Psiphon-Labs/psiphon-tunnel-core

Rod Hynes 8 éve
szülő
commit
6041febc34
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      psiphon/tunnel.go

+ 3 - 0
psiphon/tunnel.go

@@ -831,6 +831,9 @@ func dialSsh(
 
 
 	if upstreamProxyType != "" {
 	if upstreamProxyType != "" {
 		dialStats.UpstreamProxyType = upstreamProxyType
 		dialStats.UpstreamProxyType = upstreamProxyType
+	}
+
+	if len(dialConfig.CustomHeaders) > 0 {
 		dialStats.UpstreamProxyCustomHeaderNames = make([]string, 0)
 		dialStats.UpstreamProxyCustomHeaderNames = make([]string, 0)
 		for name := range dialConfig.CustomHeaders {
 		for name := range dialConfig.CustomHeaders {
 			if selectedUserAgent && name == "User-Agent" {
 			if selectedUserAgent && name == "User-Agent" {