diff options
| author | David Lönnhager <david.l@mullvad.net> | 2023-12-07 17:26:35 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2023-12-12 17:09:00 +0100 |
| commit | 0fc6b4d44ec233894a931a006f274067d4bb201d (patch) | |
| tree | dc5a42f4ab1d447ee90decf6924f1584fdfbaa43 | |
| parent | 9a4424d9599d323e0a2c154e1fca8ee0eb8e932d (diff) | |
| download | mullvadvpn-0fc6b4d44ec233894a931a006f274067d4bb201d.tar.xz mullvadvpn-0fc6b4d44ec233894a931a006f274067d4bb201d.zip | |
Run device check on every third attempt instead of every other
| -rw-r--r-- | mullvad-daemon/src/device/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mullvad-daemon/src/device/mod.rs b/mullvad-daemon/src/device/mod.rs index 2668e995ee..188fa9a1d7 100644 --- a/mullvad-daemon/src/device/mod.rs +++ b/mullvad-daemon/src/device/mod.rs @@ -46,7 +46,7 @@ const LOGOUT_TIMEOUT: Duration = Duration::from_secs(2); /// Validate the current device once for every `WG_DEVICE_CHECK_THRESHOLD` attempt to set up /// a WireGuard tunnel. -const WG_DEVICE_CHECK_THRESHOLD: usize = 2; +const WG_DEVICE_CHECK_THRESHOLD: usize = 3; #[derive(err_derive::Error, Debug, Clone)] pub enum Error { |
