去除多余配置

This commit is contained in:
lubeilin
2023-03-19 22:03:10 +08:00
parent ddfb5ac943
commit 79fa2a0823
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ impl TunWriter {
return Err(io::Error::new(io::ErrorKind::Other, format!("{:?}", e)));
}
#[cfg(target_os = "macos")]
crate::tun_device::mac::config_ip(dev.name(), address, netmask, gateway);
if let Err(e) = crate::tun_device::mac::config_ip(dev.name(), address, netmask, gateway){
log::error!("{}",e);
}
return Ok(());
}
}