File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub async fn default_route() -> Option<DefaultRouteDetails> {
55
55
let res = android:: default_route ( ) . await ;
56
56
57
57
#[ cfg( not( target_os = "android" ) ) ]
58
- let res = linux :: default_route ( ) . await ;
58
+ let res = sane :: default_route ( ) . await ;
59
59
60
60
res. ok ( ) . flatten ( )
61
61
}
@@ -126,7 +126,7 @@ mod android {
126
126
}
127
127
128
128
#[ cfg( not( target_os = "android" ) ) ]
129
- mod linux {
129
+ mod sane {
130
130
use n0_future:: { Either , StreamExt , TryStream } ;
131
131
use netlink_packet_core:: { NetlinkMessage , NLM_F_DUMP , NLM_F_REQUEST } ;
132
132
use netlink_packet_route:: {
@@ -286,10 +286,10 @@ mod linux {
286
286
#[ cfg( test) ]
287
287
mod tests {
288
288
use super :: * ;
289
+
289
290
#[ tokio:: test]
290
- #[ cfg( not( target_os = "android" ) ) ]
291
291
async fn test_default_route_netlink ( ) {
292
- let route = linux :: default_route ( ) . await . unwrap ( ) ;
292
+ let route = default_route ( ) . await . unwrap ( ) ;
293
293
// assert!(route.is_some());
294
294
if let Some ( route) = route {
295
295
assert ! ( !route. interface_name. is_empty( ) ) ;
You can’t perform that action at this time.
0 commit comments