From c49cede02b7002a4ec64b26f327c4c8fbe8b81f8 Mon Sep 17 00:00:00 2001 From: hamjin Date: Mon, 26 Feb 2024 14:29:05 +0800 Subject: [PATCH] Fix for GeodataMode --- dns/filters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/filters.go b/dns/filters.go index 2751346e..580d5da1 100644 --- a/dns/filters.go +++ b/dns/filters.go @@ -42,7 +42,7 @@ func (gf *geoipFilter) Match(ip netip.Addr) bool { return false } } - return !geoIPMatcher.Match(ip) + return !geoIPMatcher.Match(ip) && !nnip.IsPrivateIP(ip) } type ipnetFilter struct {