Skip to content

Commit 760acda

Browse files
committed
Add use_anywhere feature indicator
1 parent 3864265 commit 760acda

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

mullvad-management-interface/proto/management_interface.proto

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ enum FeatureIndicator {
261261
CUSTOM_MTU = 10;
262262
CUSTOM_MSS_FIX = 11;
263263
DAITA = 12;
264+
DAITA_USE_ANYWHERE = 13;
264265
}
265266

266267
enum ObfuscationType {

mullvad-management-interface/src/types/conversions/features.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ impl From<mullvad_types::features::FeatureIndicator> for proto::FeatureIndicator
1717
mullvad_types::features::FeatureIndicator::CustomMtu => CustomMtu,
1818
mullvad_types::features::FeatureIndicator::CustomMssFix => CustomMssFix,
1919
mullvad_types::features::FeatureIndicator::Daita => Daita,
20+
mullvad_types::features::FeatureIndicator::DaitaUseAnywhere => DaitaUseAnywhere,
2021
}
2122
}
2223
}
@@ -37,6 +38,7 @@ impl From<proto::FeatureIndicator> for mullvad_types::features::FeatureIndicator
3738
proto::FeatureIndicator::CustomMtu => Self::CustomMtu,
3839
proto::FeatureIndicator::CustomMssFix => Self::CustomMssFix,
3940
proto::FeatureIndicator::Daita => Self::Daita,
41+
proto::FeatureIndicator::DaitaUseAnywhere => Self::DaitaUseAnywhere,
4042
}
4143
}
4244
}

mullvad-types/src/features.rs

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub enum FeatureIndicator {
3838
CustomMtu,
3939
CustomMssFix,
4040
Daita,
41+
DaitaUseAnywhere,
4142
}
4243

4344
impl std::fmt::Display for FeatureIndicator {
@@ -56,6 +57,7 @@ impl std::fmt::Display for FeatureIndicator {
5657
FeatureIndicator::CustomMtu => "Custom MTU",
5758
FeatureIndicator::CustomMssFix => "Custom MSS",
5859
FeatureIndicator::Daita => "DAITA",
60+
FeatureIndicator::DaitaUseAnywhere => "Use Anywhere (DAITA)",
5961
};
6062
write!(f, "{feature}")
6163
}

0 commit comments

Comments
 (0)