@@ -76,11 +76,16 @@ impl DisconnectingState {
76
76
shared_values. bypass_socket ( fd, done_tx) ;
77
77
AfterDisconnect :: Nothing
78
78
}
79
- #[ cfg( any ( windows, target_os = "android" ) ) ]
79
+ #[ cfg( windows) ]
80
80
Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
81
81
shared_values. exclude_paths ( paths, result_tx) ;
82
82
AfterDisconnect :: Nothing
83
83
}
84
+ #[ cfg( target_os = "android" ) ]
85
+ Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
86
+ let _ = result_tx. send ( shared_values. exclude_paths ( paths) . map ( |_| ( ) ) ) ;
87
+ AfterDisconnect :: Nothing
88
+ }
84
89
#[ cfg( target_os = "macos" ) ]
85
90
Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
86
91
let _ = result_tx. send ( shared_values. set_exclude_paths ( paths) . map ( |_| ( ) ) ) ;
@@ -127,11 +132,16 @@ impl DisconnectingState {
127
132
shared_values. bypass_socket ( fd, done_tx) ;
128
133
AfterDisconnect :: Block ( reason)
129
134
}
130
- #[ cfg( any ( windows, target_os = "android" ) ) ]
135
+ #[ cfg( windows) ]
131
136
Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
132
137
shared_values. exclude_paths ( paths, result_tx) ;
133
138
AfterDisconnect :: Block ( reason)
134
139
}
140
+ #[ cfg( target_os = "android" ) ]
141
+ Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
142
+ let _ = result_tx. send ( shared_values. exclude_paths ( paths) . map ( |_| ( ) ) ) ;
143
+ AfterDisconnect :: Block ( reason)
144
+ }
135
145
#[ cfg( target_os = "macos" ) ]
136
146
Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
137
147
let _ = result_tx. send ( shared_values. set_exclude_paths ( paths) . map ( |_| ( ) ) ) ;
@@ -179,11 +189,16 @@ impl DisconnectingState {
179
189
shared_values. bypass_socket ( fd, done_tx) ;
180
190
AfterDisconnect :: Reconnect ( retry_attempt)
181
191
}
182
- #[ cfg( any ( windows, target_os = "android" ) ) ]
192
+ #[ cfg( windows) ]
183
193
Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
184
194
shared_values. exclude_paths ( paths, result_tx) ;
185
195
AfterDisconnect :: Reconnect ( retry_attempt)
186
196
}
197
+ #[ cfg( target_os = "android" ) ]
198
+ Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
199
+ let _ = result_tx. send ( shared_values. exclude_paths ( paths) . map ( |_| ( ) ) ) ;
200
+ AfterDisconnect :: Reconnect ( retry_attempt)
201
+ }
187
202
#[ cfg( target_os = "macos" ) ]
188
203
Some ( TunnelCommand :: SetExcludedApps ( result_tx, paths) ) => {
189
204
let _ = result_tx. send ( shared_values. set_exclude_paths ( paths) . map ( |_| ( ) ) ) ;
0 commit comments