Sfoglia il codice sorgente

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

Rod Hynes 8 anni fa
parent
commit
6041febc34
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      psiphon/tunnel.go

+ 3 - 0
psiphon/tunnel.go

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