From a41ffd80d869d48e31f0969adc6c5a4ce3a7c309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B6nnhager?= Date: Tue, 17 Dec 2024 08:39:39 +0100 Subject: [PATCH] Reset connection monitor state and timeout between each ping attempt --- talpid-wireguard/src/connectivity/check.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/talpid-wireguard/src/connectivity/check.rs b/talpid-wireguard/src/connectivity/check.rs index 702ce97f2d4d..508e8cff63d0 100644 --- a/talpid-wireguard/src/connectivity/check.rs +++ b/talpid-wireguard/src/connectivity/check.rs @@ -125,6 +125,8 @@ impl Check { // checks if the tunnel has ever worked. Intended to check if a connection to a tunnel is // successful at the start of a connection. pub fn establish_connectivity(&mut self, tunnel_handle: &TunnelType) -> Result { + self.conn_state = ConnState::new(Instant::now(), Default::default()); + // Send initial ping to prod WireGuard into connecting. self.ping_state .pinger