去除多余配置

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
+1
View File
@@ -91,6 +91,7 @@ pub struct StartArgs {
off_command_server: bool,
/// 记录日志,输出在 home/.switch 目录下,长时间使用时不建议开启
/// Output the log in the "home/.switch" directory
#[arg(long)]
log: bool,
}
+1 -1
View File
@@ -26,7 +26,7 @@ chrono = "0.4.23"
#lazy_static = "1.4.0"
#moka = "0.9.6"
protobuf = "3.2.0"
local-ip-address = "0.4.9"
#local-ip-address = "0.4.9"
#mio = {version = "0.8.6",features = ["os-poll", "net"]}
#tokio = { version = "1.24.1", features = ["full"] }
+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(());
}
}