diff --git a/mullvad-types/src/custom_tunnel.rs b/mullvad-types/src/custom_tunnel.rs index 8fdf361447c1..58b990ade05b 100644 --- a/mullvad-types/src/custom_tunnel.rs +++ b/mullvad-types/src/custom_tunnel.rs @@ -58,13 +58,20 @@ impl CustomTunnelEndpoint { fwmark: crate::TUNNEL_FWMARK, } .into(), - ConnectionConfig::Wireguard(connection) => wireguard::TunnelParameters { - connection, - options: tunnel_options.wireguard.into_talpid_tunnel_options(), - generic_options: tunnel_options.generic, - obfuscation: None, + ConnectionConfig::Wireguard(connection) => { + let mut options = tunnel_options.wireguard.into_talpid_tunnel_options(); + if options.quantum_resistant { + options.quantum_resistant = false; + log::info!("Ignoring 'quantum_resistant' option for custom tunnel"); + } + wireguard::TunnelParameters { + connection, + options, + generic_options: tunnel_options.generic, + obfuscation: None, + } + .into() } - .into(), }; Ok(parameters) }