Add: include interface pickup failure in log
This commit is contained in:
@@ -309,8 +309,14 @@ fn select_interface(
|
||||
let ordered = order_interfaces(&interfaces);
|
||||
for iface in ordered.iter() {
|
||||
debug!("dns leak iface pick: try={}", iface.name);
|
||||
if let Ok(channel) = open_channel_with_timeout(iface.clone(), config) {
|
||||
return Ok(channel);
|
||||
match open_channel_with_timeout(iface.clone(), config) {
|
||||
Ok(channel) => return Ok(channel),
|
||||
Err(err) => {
|
||||
debug!(
|
||||
"dns leak iface pick: failed iface={} err={}",
|
||||
iface.name, err
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user