diff options
| author | David Göransson <david.goransson@mullvad.net> | 2025-02-25 16:16:12 +0100 |
|---|---|---|
| committer | David Göransson <david.goransson@mullvad.net> | 2025-02-25 16:22:33 +0100 |
| commit | c8b6eb5ccd8ee8efcbab8e4465a0ca67496217c4 (patch) | |
| tree | 12aa220b87125a85d4388ea557b8004dfce43f22 | |
| parent | c253e07ab4c2632e3ffa93cb2997e9f50e1d0a55 (diff) | |
| download | mullvadvpn-c8b6eb5ccd8ee8efcbab8e4465a0ca67496217c4.tar.xz mullvadvpn-c8b6eb5ccd8ee8efcbab8e4465a0ca67496217c4.zip | |
Fix connection loop regression
| -rw-r--r-- | talpid-wireguard/src/wireguard_go/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/talpid-wireguard/src/wireguard_go/mod.rs b/talpid-wireguard/src/wireguard_go/mod.rs index f9c3f86403..0289831172 100644 --- a/talpid-wireguard/src/wireguard_go/mod.rs +++ b/talpid-wireguard/src/wireguard_go/mod.rs @@ -148,11 +148,17 @@ impl WgGoTunnel { WgGoTunnel::Singlehop(mut state) => { state.set_config(config.clone())?; let new_state = WgGoTunnel::Singlehop(state); + // HACK: Check if the tunnel is working by sending a ping in the tunnel. + // This check is needed for PQ connections to be established. + new_state.ensure_tunnel_is_running().await?; Ok(new_state) } WgGoTunnel::Multihop(mut state) => { state.set_config(config.clone())?; let new_state = WgGoTunnel::Multihop(state); + // HACK: Check if the tunnel is working by sending a ping in the tunnel. + // This check is needed for PQ connections to be established. + new_state.ensure_tunnel_is_running().await?; Ok(new_state) } } |
