Explorar el Código

Apply seed transforms only to the OSSH tunnel protocol

Rod Hynes hace 2 años
padre
commit
21d7140026
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 {
 		if serverEntry.DisableOSSHTransforms {