Fix for GeodataMode

This commit is contained in:
hamjin 2024-02-26 14:29:05 +08:00
parent 088fdb2ddd
commit c49cede02b

View File

@ -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 {