支持tap网卡,优化tun网卡配置

This commit is contained in:
lubeilin
2023-05-07 18:32:11 +08:00
parent 068580e036
commit 35ed7f7e45
68 changed files with 2810 additions and 2393 deletions
+4 -1
View File
@@ -60,7 +60,7 @@ enum Commands {
Status,
}
#[derive(Parser, Debug)]
#[derive(Parser, Debug,Default)]
pub struct StartArgs {
/// 不超过64个字符
/// 相同token的设备之间才能通信。
@@ -95,6 +95,9 @@ pub struct StartArgs {
/// Output the log in the "home/.switch_desktop" directory
#[arg(long)]
log: bool,
/// 使用tap网卡
#[arg(long)]
tap: Option<bool>,
}
#[cfg(target_os = "windows")]