diff --git a/mullvad-daemon/src/lib.rs b/mullvad-daemon/src/lib.rs index a680712ff384..b5b5b1605c2b 100644 --- a/mullvad-daemon/src/lib.rs +++ b/mullvad-daemon/src/lib.rs @@ -3000,6 +3000,16 @@ impl Daemon { #[cfg(daita)] let daita = endpoint.daita; + #[cfg(daita)] + let daita_use_anywhere = + if let RelaySettings::Normal(constraints) = settings.relay_settings { + // Detect whether we're using "use_anywhere" by checking if multihop is + // in use but not explicitly enabled. + daita && multihop && !constraints.wireguard_constraints.use_multihop + } else { + false + }; + vec![ (quantum_resistant, FeatureIndicator::QuantumResistance), (multihop, FeatureIndicator::Multihop), @@ -3008,6 +3018,8 @@ impl Daemon { (mtu, FeatureIndicator::CustomMtu), #[cfg(daita)] (daita, FeatureIndicator::Daita), + #[cfg(daita)] + (daita_use_anywhere, FeatureIndicator::DaitaUseAnywhere), ] } };