diff options
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/tunnel/wireguard/connectivity_check.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/talpid-core/src/tunnel/wireguard/connectivity_check.rs b/talpid-core/src/tunnel/wireguard/connectivity_check.rs index d6bb61a5fc..ec2af873a0 100644 --- a/talpid-core/src/tunnel/wireguard/connectivity_check.rs +++ b/talpid-core/src/tunnel/wireguard/connectivity_check.rs @@ -107,6 +107,8 @@ impl ConnectivityMonitor { // checks if the tunnel has ever worked. Intended to check if a connection to a tunnel is // successfull at the start of a connection. pub(super) fn establish_connectivity(&mut self, retry_attempt: u32) -> Result<bool, Error> { + // Send initial ping to prod WireGuard into connecting. + self.pinger.send_icmp().map_err(Error::PingError)?; self.establish_connectivity_inner( retry_attempt, ESTABLISH_TIMEOUT, |
