From 01fb4d64fa41d0402f3a5ae3d8539e754b91a7a4 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 14 Mar 2021 09:54:20 +0800 Subject: [PATCH] fakedns: use a fake IP range that work for Windows --- leaf/src/app/fake_dns.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaf/src/app/fake_dns.rs b/leaf/src/app/fake_dns.rs index a09913d..92bda81 100644 --- a/leaf/src/app/fake_dns.rs +++ b/leaf/src/app/fake_dns.rs @@ -29,8 +29,8 @@ pub struct FakeDns { impl FakeDns { pub fn new(mode: FakeDnsMode) -> Self { - let min_cursor = Self::ip_to_u32(&Ipv4Addr::new(240, 255, 0, 0)); - let max_cursor = Self::ip_to_u32(&Ipv4Addr::new(240, 255, 4, 255)); + let min_cursor = Self::ip_to_u32(&Ipv4Addr::new(198, 18, 0, 0)); + let max_cursor = Self::ip_to_u32(&Ipv4Addr::new(198, 18, 4, 255)); FakeDns { ip_to_domain: HashMap::new(),