From c10d39e647dde697a8dde73156ad4ee568b8da45 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Tue, 13 Aug 2024 12:43:41 +0200 Subject: [PATCH] Add `use_anywhere` feature indicator --- mullvad-management-interface/proto/management_interface.proto | 1 + mullvad-management-interface/src/types/conversions/features.rs | 2 ++ mullvad-types/src/features.rs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/mullvad-management-interface/proto/management_interface.proto b/mullvad-management-interface/proto/management_interface.proto index 4a7d46d003a7..595c8f35273b 100644 --- a/mullvad-management-interface/proto/management_interface.proto +++ b/mullvad-management-interface/proto/management_interface.proto @@ -262,6 +262,7 @@ enum FeatureIndicator { CUSTOM_MTU = 11; CUSTOM_MSS_FIX = 12; DAITA = 13; + DAITA_USE_ANYWHERE = 14; } message ObfuscationEndpoint { diff --git a/mullvad-management-interface/src/types/conversions/features.rs b/mullvad-management-interface/src/types/conversions/features.rs index d21441a610b4..f0a161806ffc 100644 --- a/mullvad-management-interface/src/types/conversions/features.rs +++ b/mullvad-management-interface/src/types/conversions/features.rs @@ -18,6 +18,7 @@ impl From for proto::FeatureIndicator mullvad_types::features::FeatureIndicator::CustomMtu => CustomMtu, mullvad_types::features::FeatureIndicator::CustomMssFix => CustomMssFix, mullvad_types::features::FeatureIndicator::Daita => Daita, + mullvad_types::features::FeatureIndicator::DaitaUseAnywhere => DaitaUseAnywhere, } } } @@ -39,6 +40,7 @@ impl From for mullvad_types::features::FeatureIndicator proto::FeatureIndicator::CustomMtu => Self::CustomMtu, proto::FeatureIndicator::CustomMssFix => Self::CustomMssFix, proto::FeatureIndicator::Daita => Self::Daita, + proto::FeatureIndicator::DaitaUseAnywhere => Self::DaitaUseAnywhere, } } } diff --git a/mullvad-types/src/features.rs b/mullvad-types/src/features.rs index 30455bd0bc90..2e5c3b7fd40b 100644 --- a/mullvad-types/src/features.rs +++ b/mullvad-types/src/features.rs @@ -39,6 +39,7 @@ pub enum FeatureIndicator { CustomMtu, CustomMssFix, Daita, + DaitaUseAnywhere, } impl std::fmt::Display for FeatureIndicator { @@ -58,6 +59,7 @@ impl std::fmt::Display for FeatureIndicator { FeatureIndicator::CustomMtu => "Custom MTU", FeatureIndicator::CustomMssFix => "Custom MSS", FeatureIndicator::Daita => "DAITA", + FeatureIndicator::DaitaUseAnywhere => "Use Anywhere (DAITA)", }; write!(f, "{feature}") }