From e981e7eaaf7aafa3226efab3c0df9bde10d555d0 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Tue, 11 Jun 2024 23:28:08 +0800 Subject: [PATCH] fix: parse_ipnet enabled for local-fake-dns (#1558) --- src/vparser/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vparser/mod.rs b/src/vparser/mod.rs index 01e5c6586e45..45a2996058ce 100644 --- a/src/vparser/mod.rs +++ b/src/vparser/mod.rs @@ -56,7 +56,7 @@ pub fn parse_server_url(v: &str) -> Result { } } -#[cfg(feature = "local-tun")] +#[cfg(any(feature = "local-tun", feature = "local-fake-dns"))] pub fn parse_ipnet(v: &str) -> Result { match v.parse::() { Err(..) => Err("should be a CIDR address like 10.1.2.3/24".to_owned()),