提示虚拟网卡创建失败的信息

This commit is contained in:
lbl8603
2024-08-07 21:29:55 +08:00
parent afff49e61a
commit dc4e472f20
14 changed files with 198 additions and 19 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ vnt = { path = "../vnt", package = "vnt", default-features = false, features = [
common = { path = "../common", default-features = false, features = ["integrated_tun"] }
log = "0.4.17"
anyhow = "1.0.82"
console = "0.15.2"
[target.'cfg(any(target_os = "linux",target_os = "macos"))'.dependencies]
sudo = "0.6.0"
+2 -1
View File
@@ -1,4 +1,5 @@
use common::callback;
use console::style;
use vnt::core::{Config, Vnt};
mod root_check;
fn main() {
@@ -16,7 +17,7 @@ fn main() {
e,
std::env::args().collect::<Vec<String>>()
);
println!("{}", e);
println!("{}", style(format!("Error {:?}", e)).red());
return;
}
};