diff --git a/Cargo.lock b/Cargo.lock index 7473e3e371c6..8d047a367693 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -532,18 +532,18 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.6" +version = "4.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9689a29b593160de5bc4aacab7b5d54fb52231de70122626c178e6a368994c7" +checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.5.6" +version = "4.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5387378c84f6faa26890ebf9f0a92989f8873d4d380467bcd0d8d8620424df" +checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f" dependencies = [ "anstream", "anstyle", @@ -1397,12 +1397,12 @@ dependencies = [ [[package]] name = "http-body-util" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", - "futures-core", + "futures-util", "http 1.1.0", "http-body", "pin-project-lite", @@ -1410,9 +1410,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8720bf4c5bfb5b6c350840c4cd14b787bf00ed51c148c857fbf7a6ddb7062764" +checksum = "9f3935c160d00ac752e09787e6e6bfc26494c2183cc922f1bc678a60d4733bc2" [[package]] name = "httpdate" diff --git a/Cargo.toml b/Cargo.toml index 7b9988a174cb..88cc3f67e824 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -161,7 +161,7 @@ local-socks4 = ["local", "shadowsocks-service/local-socks4"] # Enable Tun interface protocol for sslocal local-tun = ["local", "shadowsocks-service/local-tun", "ipnet"] # Enable Fake DNS for sslocal -local-fake-dns = ["local", "shadowsocks-service/local-fake-dns"] +local-fake-dns = ["local", "shadowsocks-service/local-fake-dns", "ipnet"] # sslocal support online URL (SIP008 Online Configuration Delivery) # https://shadowsocks.org/doc/sip008.html local-online-config = [ diff --git a/src/vparser/mod.rs b/src/vparser/mod.rs index 9853c514d6cb..01e5c6586e45 100644 --- a/src/vparser/mod.rs +++ b/src/vparser/mod.rs @@ -4,7 +4,7 @@ use std::net::{IpAddr, SocketAddr}; -#[cfg(feature = "local-tun")] +#[cfg(any(feature = "local-tun", feature = "local-fake-dns"))] use ipnet::IpNet; #[cfg(feature = "local-redir")] use shadowsocks_service::config::RedirType;