diff options
| author | Jonathan <jonathan@mullvad.net> | 2023-06-28 14:36:24 +0200 |
|---|---|---|
| committer | Jonathan <jonathan@mullvad.net> | 2023-06-29 15:00:10 +0200 |
| commit | 5f61ba4058337e6985cee99661a59a98ebff6dd0 (patch) | |
| tree | ba94b7e0829f2fd57a9974b4590af59e9937e5be /mullvad-relay-selector | |
| parent | b4bf8124fbc30bf891f70f120265f30c490d1244 (diff) | |
| download | mullvadvpn-5f61ba4058337e6985cee99661a59a98ebff6dd0.tar.xz mullvadvpn-5f61ba4058337e6985cee99661a59a98ebff6dd0.zip | |
Add settings migration code, refactor and cleanup
Bump the settings version. Add code for migrating settings to new
version since it is now not backwards compatible.
Refactor LocationConstraint and related types to be more lean.
Cleanup issues and fix formatting.
Refactor LocationConstraint and add migration code
Diffstat (limited to 'mullvad-relay-selector')
| -rw-r--r-- | mullvad-relay-selector/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-relay-selector/src/lib.rs b/mullvad-relay-selector/src/lib.rs index 9fd6e3c6da..e62c63f3db 100644 --- a/mullvad-relay-selector/src/lib.rs +++ b/mullvad-relay-selector/src/lib.rs @@ -1564,7 +1564,7 @@ mod test { BridgeState::Off, attempt, TunnelType::OpenVpn, - &CustomListsSettings::default() + &CustomListsSettings::default(), ); assert_eq!( preferred.tunnel_protocol, @@ -1575,7 +1575,7 @@ mod test { BridgeState::Off, attempt, TunnelType::OpenVpn, - &CustomListsSettings::default() + &CustomListsSettings::default(), ) { Ok(result) if matches!(result.endpoint, MullvadEndpoint::OpenVpn(_)) => (), _ => panic!("OpenVPN endpoint was not selected"), |
