@@ -43,7 +43,7 @@ use mullvad_relay_selector::{
43
43
} ;
44
44
#[ cfg( target_os = "android" ) ]
45
45
use mullvad_types:: account:: { PlayPurchase , PlayPurchasePaymentToken } ;
46
- #[ cfg( any ( target_os = "windows" , target_os = "linux" ) ) ]
46
+ #[ cfg( feature = "daita" ) ]
47
47
use mullvad_types:: wireguard:: DaitaSettings ;
48
48
use mullvad_types:: {
49
49
access_method:: { AccessMethod , AccessMethodSetting } ,
@@ -258,7 +258,7 @@ pub enum DaemonCommand {
258
258
/// Set whether to enable PQ PSK exchange in the tunnel
259
259
SetQuantumResistantTunnel ( ResponseTx < ( ) , settings:: Error > , QuantumResistantState ) ,
260
260
/// Set DAITA settings for the tunnel
261
- #[ cfg( any ( target_os = "windows" , target_os = "linux" ) ) ]
261
+ #[ cfg( feature = "daita" ) ]
262
262
SetDaitaSettings ( ResponseTx < ( ) , settings:: Error > , DaitaSettings ) ,
263
263
/// Set DNS options or servers to use
264
264
SetDnsOptions ( ResponseTx < ( ) , settings:: Error > , DnsOptions ) ,
@@ -1229,7 +1229,7 @@ where
1229
1229
self . on_set_quantum_resistant_tunnel ( tx, quantum_resistant_state)
1230
1230
. await
1231
1231
}
1232
- #[ cfg( any ( target_os = "windows" , target_os = "linux" ) ) ]
1232
+ #[ cfg( feature = "daita" ) ]
1233
1233
SetDaitaSettings ( tx, daita_settings) => {
1234
1234
self . on_set_daita_settings ( tx, daita_settings) . await
1235
1235
}
@@ -2285,7 +2285,7 @@ where
2285
2285
}
2286
2286
}
2287
2287
2288
- #[ cfg( any ( target_os = "windows" , target_os = "linux" ) ) ]
2288
+ #[ cfg( feature = "daita" ) ]
2289
2289
async fn on_set_daita_settings (
2290
2290
& mut self ,
2291
2291
tx : ResponseTx < ( ) , settings:: Error > ,
@@ -2842,9 +2842,9 @@ impl DaemonShutdownHandle {
2842
2842
fn new_selector_config ( settings : & Settings ) -> SelectorConfig {
2843
2843
let additional_constraints = AdditionalRelayConstraints {
2844
2844
wireguard : AdditionalWireguardConstraints {
2845
- #[ cfg( target_os = "windows " ) ]
2845
+ #[ cfg( feature = "daita " ) ]
2846
2846
daita : settings. tunnel_options . wireguard . daita . enabled ,
2847
- #[ cfg( not( target_os = "windows " ) ) ]
2847
+ #[ cfg( not( feature = "daita " ) ) ]
2848
2848
daita : false ,
2849
2849
} ,
2850
2850
} ;
0 commit comments