Skip to content

Commit

Permalink
Add use_anywhere feature indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Aug 19, 2024
1 parent 1a67f72 commit c10d39e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ enum FeatureIndicator {
CUSTOM_MTU = 11;
CUSTOM_MSS_FIX = 12;
DAITA = 13;
DAITA_USE_ANYWHERE = 14;
}

message ObfuscationEndpoint {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ impl From<mullvad_types::features::FeatureIndicator> 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,
}
}
}
Expand All @@ -39,6 +40,7 @@ impl From<proto::FeatureIndicator> 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,
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions mullvad-types/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub enum FeatureIndicator {
CustomMtu,
CustomMssFix,
Daita,
DaitaUseAnywhere,
}

impl std::fmt::Display for FeatureIndicator {
Expand All @@ -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}")
}
Expand Down

0 comments on commit c10d39e

Please sign in to comment.