Rod Hynes 7 lat temu
rodzic
commit
6d1bdbcf2a
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 3 1
      psiphon/config.go
  2. 1 1
      psiphon/tlsDialer.go

+ 3 - 1
psiphon/config.go

@@ -1054,7 +1054,9 @@ func (config *Config) setDialParametersHash() {
 		}
 	}
 
-	// *TODO*
+	// Whether a custom User-Agent is specified is a binary flag: when not set,
+	// the replay dial parameters value applies. When set, external
+	// considerations apply.
 	if _, ok := config.CustomHeaders["User-Agent"]; ok {
 		hash.Write([]byte{1})
 	}

+ 1 - 1
psiphon/tlsDialer.go

@@ -388,7 +388,7 @@ func CustomTLSDial(
 	// additional diversity/capacity; TLS 1.3 encrypts the server certificate,
 	// so the desired obfuscated session tickets property of obfuscating server
 	// certificates is satisfied. We know that when the ClientHello offers TLS
-	// 1.3, the Psiphon server, in these direct protocol cases, will negoritate
+	// 1.3, the Psiphon server, in these direct protocol cases, will negotiate
 	// it.
 	if config.ObfuscatedSessionTicketKey != "" {