去除多余配置
This commit is contained in:
@@ -91,6 +91,7 @@ pub struct StartArgs {
|
|||||||
off_command_server: bool,
|
off_command_server: bool,
|
||||||
/// 记录日志,输出在 home/.switch 目录下,长时间使用时不建议开启
|
/// 记录日志,输出在 home/.switch 目录下,长时间使用时不建议开启
|
||||||
/// Output the log in the "home/.switch" directory
|
/// Output the log in the "home/.switch" directory
|
||||||
|
#[arg(long)]
|
||||||
log: bool,
|
log: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ chrono = "0.4.23"
|
|||||||
#lazy_static = "1.4.0"
|
#lazy_static = "1.4.0"
|
||||||
#moka = "0.9.6"
|
#moka = "0.9.6"
|
||||||
protobuf = "3.2.0"
|
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"]}
|
#mio = {version = "0.8.6",features = ["os-poll", "net"]}
|
||||||
#tokio = { version = "1.24.1", features = ["full"] }
|
#tokio = { version = "1.24.1", features = ["full"] }
|
||||||
|
|||||||
@@ -68,7 +68,9 @@ impl TunWriter {
|
|||||||
return Err(io::Error::new(io::ErrorKind::Other, format!("{:?}", e)));
|
return Err(io::Error::new(io::ErrorKind::Other, format!("{:?}", e)));
|
||||||
}
|
}
|
||||||
#[cfg(target_os = "macos")]
|
#[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(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user