diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2023-07-11 16:39:08 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2023-07-14 12:12:49 +0200 |
| commit | 57ead9b13630f7d565b0a1c7906ea37dc4a36204 (patch) | |
| tree | bdc48ea8c745229e07c9eeb1beeb5506bf6e95ac /mullvad-api/src | |
| parent | 73f42b117e3d1a67815fe1608ef1b712f8e75880 (diff) | |
| download | mullvadvpn-57ead9b13630f7d565b0a1c7906ea37dc4a36204.tar.xz mullvadvpn-57ead9b13630f7d565b0a1c7906ea37dc4a36204.zip | |
Remove `x_threshold_wg_default` code
Since we migrated to using Wireguard as the definitive default VPN, we
can stop reading the `x_threshold_wg_default` field from the API and
remove all daemon code related to using it
Diffstat (limited to 'mullvad-api/src')
| -rw-r--r-- | mullvad-api/src/lib.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mullvad-api/src/lib.rs b/mullvad-api/src/lib.rs index 5c9b4b726d..e304df1dec 100644 --- a/mullvad-api/src/lib.rs +++ b/mullvad-api/src/lib.rs @@ -547,16 +547,6 @@ pub struct AppVersionResponse { pub latest: AppVersion, pub latest_stable: Option<AppVersion>, pub latest_beta: AppVersion, - #[serde(default = "default_wg_threshold")] - pub x_threshold_wg_default: f32, -} - -/// Temporary function that will be removed later. Used to generate default wg_threshold. -/// In case there is no `x_threshold_wg_default` returned by the API result we interpret that to -/// mean that the migration is done and WireGuard should be the default. In that case the threshold -/// value should be 1.0 -fn default_wg_threshold() -> f32 { - 1.0 } impl AppVersionProxy { |
