diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-07-05 15:44:46 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-07-09 11:01:47 +0200 |
| commit | 004a0181dc399bcbd6628b61dee62fc38d9fed5a (patch) | |
| tree | 2931a5ce37a974c2d14efc40cae365435b271c00 | |
| parent | f6c6c530863c8d71da589e1f54fb822c9b488860 (diff) | |
| download | mullvadvpn-004a0181dc399bcbd6628b61dee62fc38d9fed5a.tar.xz mullvadvpn-004a0181dc399bcbd6628b61dee62fc38d9fed5a.zip | |
Log error instead of panicking
| -rw-r--r-- | mullvad-daemon/src/relays.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mullvad-daemon/src/relays.rs b/mullvad-daemon/src/relays.rs index 62489255ce..b0bb5e2eac 100644 --- a/mullvad-daemon/src/relays.rs +++ b/mullvad-daemon/src/relays.rs @@ -818,7 +818,8 @@ impl RelaySelector { } port_index -= ports_in_range; } - panic!("Port selection algorithm is broken") + error!("Port selection algorithm is broken!"); + None } Constraint::Only(port) => { if data |
