diff options
| author | Emīls <emils@mullvad.net> | 2019-12-05 14:02:17 +0000 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2019-12-05 15:58:11 +0000 |
| commit | 42ba04a8e5d905e600d717e4456cc5daa5edacf9 (patch) | |
| tree | c73ffd4c8fc32068c2a52a8771d051c6be372596 /mullvad-daemon/src | |
| parent | 4b89520b96325613165b0b6ad1c45c4dc702ddae (diff) | |
| download | mullvadvpn-42ba04a8e5d905e600d717e4456cc5daa5edacf9.tar.xz mullvadvpn-42ba04a8e5d905e600d717e4456cc5daa5edacf9.zip | |
Fix improved port selection for WireGuard
Diffstat (limited to 'mullvad-daemon/src')
| -rw-r--r-- | mullvad-daemon/src/relays.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mullvad-daemon/src/relays.rs b/mullvad-daemon/src/relays.rs index 677dcb6da1..51937e9ecf 100644 --- a/mullvad-daemon/src/relays.rs +++ b/mullvad-daemon/src/relays.rs @@ -288,10 +288,7 @@ impl RelaySelector { // This ensures that if after the first 2 failed attempts the daemon does not // conenct, then afterwards 2 of each 4 successive attempts will try to connect on // port 53. - if retry_attempt > 2 - && retry_attempt % 4 < 2 - && relay_constraints.wireguard_constraints.port.is_any() - { + if retry_attempt % 4 > 1 && relay_constraints.wireguard_constraints.port.is_any() { relay_constraints.wireguard_constraints.port = Constraint::Only(53); } } |
