Skip to content

Commit

Permalink
fix: parse_ipnet enabled for local-fake-dns (#1558)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 11, 2024
1 parent a77f0cb commit e981e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vparser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn parse_server_url(v: &str) -> Result<ServerConfig, String> {
}
}

#[cfg(feature = "local-tun")]
#[cfg(any(feature = "local-tun", feature = "local-fake-dns"))]
pub fn parse_ipnet(v: &str) -> Result<IpNet, String> {
match v.parse::<IpNet>() {
Err(..) => Err("should be a CIDR address like 10.1.2.3/24".to_owned()),
Expand Down

0 comments on commit e981e7e

Please sign in to comment.