Add: include interface pickup failure in log

This commit is contained in:
DaZuo0122
2026-01-17 19:10:52 +08:00
parent d5b92ede7b
commit a82a7fe2ad
2 changed files with 9 additions and 3 deletions

View File

@@ -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
);
}
}
}