diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-01-15 09:20:12 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-01-24 17:35:03 +0100 |
| commit | 04772fccb6229e97309096f62ca1fa86fbe3ccca (patch) | |
| tree | a9699419ace39c8c4131de8bc02a0bc69eb18849 | |
| parent | 0eb89ceb5272a8f9cd8d0715320f53413d5a3664 (diff) | |
| download | mullvadvpn-04772fccb6229e97309096f62ca1fa86fbe3ccca.tar.xz mullvadvpn-04772fccb6229e97309096f62ca1fa86fbe3ccca.zip | |
Remove more use of `#[cfg(daita)]`
| -rw-r--r-- | talpid-wireguard/src/ephemeral.rs | 2 | ||||
| -rw-r--r-- | talpid-wireguard/src/lib.rs | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/talpid-wireguard/src/ephemeral.rs b/talpid-wireguard/src/ephemeral.rs index 903ccf4c3b..1d7f4f3955 100644 --- a/talpid-wireguard/src/ephemeral.rs +++ b/talpid-wireguard/src/ephemeral.rs @@ -148,7 +148,6 @@ async fn config_ephemeral_peers_inner( } config.exit_peer_mut().psk = exit_ephemeral_peer.psk; - #[cfg(daita)] if config.daita { log::trace!("Enabling constant packet size for entry peer"); config.entry_peer.constant_packet_size = true; @@ -166,7 +165,6 @@ async fn config_ephemeral_peers_inner( ) .await?; - #[cfg(daita)] if config.daita { let Some(daita) = daita else { unreachable!("missing DAITA settings"); diff --git a/talpid-wireguard/src/lib.rs b/talpid-wireguard/src/lib.rs index 3d6c2b4471..863b767ae1 100644 --- a/talpid-wireguard/src/lib.rs +++ b/talpid-wireguard/src/lib.rs @@ -299,7 +299,6 @@ impl WireguardMonitor { let config = config.clone(); let iface_name = iface_name.clone(); tokio::task::spawn(async move { - #[cfg(daita)] if config.daita { // TODO: For now, we assume the MTU during the tunnel lifetime. // We could instead poke maybenot whenever we detect changes to it. @@ -1039,7 +1038,6 @@ pub(crate) trait Tunnel: Send + Sync { ) -> Pin<Box<dyn Future<Output = std::result::Result<(), TunnelError>> + Send + 'a>>; #[cfg(daita)] /// A [`Tunnel`] capable of using DAITA. - #[cfg(daita)] fn start_daita(&mut self, settings: DaitaSettings) -> std::result::Result<(), TunnelError>; } |
