@@ -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
}
@@ -2240,7 +2240,7 @@ where
2240
2240
}
2241
2241
}
2242
2242
2243
- #[ cfg( any ( target_os = "windows" , target_os = "linux" ) ) ]
2243
+ #[ cfg( feature = "daita" ) ]
2244
2244
async fn on_set_daita_settings (
2245
2245
& mut self ,
2246
2246
tx : ResponseTx < ( ) , settings:: Error > ,
@@ -2797,9 +2797,9 @@ impl DaemonShutdownHandle {
2797
2797
fn new_selector_config ( settings : & Settings ) -> SelectorConfig {
2798
2798
let additional_constraints = AdditionalRelayConstraints {
2799
2799
wireguard : AdditionalWireguardConstraints {
2800
- #[ cfg( target_os = "windows " ) ]
2800
+ #[ cfg( feature = "daita " ) ]
2801
2801
daita : settings. tunnel_options . wireguard . daita . enabled ,
2802
- #[ cfg( not( target_os = "windows " ) ) ]
2802
+ #[ cfg( not( feature = "daita " ) ) ]
2803
2803
daita : false ,
2804
2804
} ,
2805
2805
} ;
0 commit comments