Browse Source

Always add custom header names to dial stats

Miro Kuratczyk 8 years ago
parent
commit
a1af83db88
1 changed files with 3 additions and 0 deletions
  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" {