From 01cf8806e2dfcdd85f4179f396351ab5065f2072 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Tue, 14 May 2024 09:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86unix=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=A8=A1=E5=9D=97=E7=9A=84=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnt/Cargo.toml | 2 +- vnt/src/handle/tun_tap/unix.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vnt/Cargo.toml b/vnt/Cargo.toml index 2ff4655..a58f0a4 100644 --- a/vnt/Cargo.toml +++ b/vnt/Cargo.toml @@ -30,7 +30,7 @@ spki = { version = "0.7.2", features = ["fingerprint", "alloc", "base64"], optio openssl-sys = { git = "https://github.com/lbl8603/rust-openssl", optional = true } libsm = { git = "https://github.com/lbl8603/libsm", optional = true } -mio = { version = "0.8.10", features = ["os-poll", "net"] } +mio = { version = "0.8.10", features = ["os-poll", "net", "os-ext"] } crossbeam-queue = "0.3.11" anyhow = "1.0.82" dns-parser = "0.8.0" diff --git a/vnt/src/handle/tun_tap/unix.rs b/vnt/src/handle/tun_tap/unix.rs index 0c52966..a397623 100644 --- a/vnt/src/handle/tun_tap/unix.rs +++ b/vnt/src/handle/tun_tap/unix.rs @@ -3,6 +3,7 @@ use crate::cipher::Cipher; use crate::external_route::ExternalRoute; use crate::handle::tun_tap::channel_group::GroupSyncSender; use crate::handle::{CurrentDeviceInfo, PeerDeviceInfo}; +#[cfg(feature = "ip_proxy")] use crate::ip_proxy::IpProxyMap; use crate::util::{SingleU64Adder, StopManager}; use crossbeam_utils::atomic::AtomicCell;