Skip to content

Commit

Permalink
Ignore PQ for custom tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Jan 16, 2024
1 parent 7b9cc82 commit 8b834f8
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions mullvad-types/src/custom_tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8b834f8

Please sign in to comment.