diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-10-08 19:17:57 +0200 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-10-24 14:11:11 +0200 |
| commit | c3525ff79abc6fb0185538a3e30d419fa7033034 (patch) | |
| tree | 08278552fd26d6a7f1f1cc3b48ba9e0495b52b20 | |
| parent | f4a95a0841c64805c5dba52a91ea561e515deeb7 (diff) | |
| download | mullvadvpn-c3525ff79abc6fb0185538a3e30d419fa7033034.tar.xz mullvadvpn-c3525ff79abc6fb0185538a3e30d419fa7033034.zip | |
Fix tunnel setup after having negotiated with an ephemeral peer
Co-authored-by: Joakim Hulthe <joakim.hulthe@mullvad.net>
| -rw-r--r-- | talpid-wireguard/src/boringtun/mod.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/talpid-wireguard/src/boringtun/mod.rs b/talpid-wireguard/src/boringtun/mod.rs index 413a86dddd..31685d1cbd 100644 --- a/talpid-wireguard/src/boringtun/mod.rs +++ b/talpid-wireguard/src/boringtun/mod.rs @@ -513,13 +513,16 @@ impl Tunnel for BoringTun { config: Config, daita: Option<DaitaSettings>, ) -> std::pin::Pin<Box<dyn Future<Output = Result<(), TunnelError>> + Send + 'a>> { - dbg!(&config); Box::pin(async move { self.config = config; // if we're switching to/from multihop, we'll need to tear down the old device(s) // and set them up with the new DeviceTransports - let recreate_devices = old_config.is_multihop() != self.config.is_multihop(); + // TODO: Debug configure_devices. Currently we need to tear down the old devices + // after having exchanged tunnel params with the ephemeral peer. Empirically this + // is true for both DAITA & PQ. + // let recreate_devices = old_config.is_multihop() != self.config.is_multihop(); + let recreate_devices = true; if recreate_devices { // TODO: devices should never be None while this BoringTun instance is running. |
