Jelajahi Sumber

Apply seed transforms only to the OSSH tunnel protocol

Rod Hynes 2 tahun lalu
induk
melakukan
21d7140026
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      psiphon/dialParameters.go

+ 3 - 1
psiphon/dialParameters.go

@@ -807,7 +807,9 @@ func MakeDialParameters(
 
 	}
 
-	if protocol.TunnelProtocolUsesObfuscatedSSH(dialParams.TunnelProtocol) {
+	// OSSH seed transforms are applied only to the OSSH tunnel protocol, and
+	// not to any other protocol layered over OSSH.
+	if dialParams.TunnelProtocol == protocol.TUNNEL_PROTOCOL_OBFUSCATED_SSH {
 
 		if serverEntry.DisableOSSHTransforms {