Skip to content

Commit

Permalink
Reset connection monitor state and timeout between each ping attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 18, 2024
1 parent 407cc5a commit a41ffd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions talpid-wireguard/src/connectivity/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ impl<S: Strategy> Check<S> {
// 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<bool, Error> {
self.conn_state = ConnState::new(Instant::now(), Default::default());

// Send initial ping to prod WireGuard into connecting.
self.ping_state
.pinger
Expand Down

0 comments on commit a41ffd8

Please sign in to comment.