summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--talpid-wireguard/src/wireguard_go/mod.rs6
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)
}
}