File tree 1 file changed +2
-9
lines changed
talpid-routing/src/unix/macos
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,7 @@ impl PrimaryInterfaceMonitor {
133
133
log:: debug!( "Found primary interface for {family}" ) ;
134
134
vec ! [ iface]
135
135
} )
136
- . unwrap_or_else ( || {
137
- log:: debug!( "No primary interface for {family}. Checking service order" ) ;
138
- self . network_services ( family)
139
- } ) ;
136
+ . unwrap_or_else ( || self . network_services ( family) ) ;
140
137
141
138
let ( iface, index) = ifaces
142
139
. into_iter ( )
@@ -225,11 +222,7 @@ impl PrimaryInterfaceMonitor {
225
222
let ip_dict = self
226
223
. store
227
224
. get ( CFString :: new ( & key) )
228
- . and_then ( |v| v. downcast_into :: < CFDictionary > ( ) )
229
- . or_else ( || {
230
- log:: debug!( "No {family} dict for {service_id_s}" ) ;
231
- None
232
- } ) ?;
225
+ . and_then ( |v| v. downcast_into :: < CFDictionary > ( ) ) ?;
233
226
let name = ip_dict
234
227
. find ( unsafe { kSCPropInterfaceName } . to_void ( ) )
235
228
. map ( |s| unsafe { CFType :: wrap_under_get_rule ( * s) } )
You can’t perform that action at this time.
0 commit comments