From b12b0b95a08a5041e78e8e3d08dd1c9930de6923 Mon Sep 17 00:00:00 2001 From: lbl8603 <49143209+lbl8603@users.noreply.github.com> Date: Thu, 9 May 2024 20:13:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4linux=E4=B8=8A=E7=9A=84tap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/src/core/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vnt/src/core/mod.rs b/vnt/src/core/mod.rs index 3959897..4c0d728 100644 --- a/vnt/src/core/mod.rs +++ b/vnt/src/core/mod.rs @@ -13,7 +13,7 @@ mod conn; #[derive(Clone, Debug)] pub struct Config { - #[cfg(any(target_os = "windows", target_os = "linux"))] + #[cfg(target_os = "windows")] pub tap: bool, pub token: String, pub device_id: String, @@ -50,7 +50,7 @@ pub struct Config { impl Config { pub fn new( - #[cfg(any(target_os = "windows", target_os = "linux"))] tap: bool, + #[cfg(target_os = "windows")] tap: bool, token: String, device_id: String, name: String, @@ -104,7 +104,7 @@ impl Config { #[cfg(feature = "port_mapping")] let port_mapping_list = crate::port_mapping::convert(port_mapping_list)?; Ok(Self { - #[cfg(any(target_os = "windows", target_os = "linux"))] + #[cfg(target_os = "windows")] tap, token, device_id,