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

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

Rod Hynes 8 лет назад
Родитель
Сommit
6041febc34
1 измененных файлов с 3 добавлено и 0 удалено
  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" {