chore: cleanup IPSet code

This commit is contained in:
wwqgtxx
2024-01-13 11:44:02 +08:00
parent d2d8c0115c
commit e860497c0c
3 changed files with 20 additions and 190 deletions

View File

@@ -41,7 +41,7 @@ func (gf *geoipFilter) Match(ip netip.Addr) bool {
return false
}
}
return !geoIPMatcher.Match(ip.AsSlice())
return !geoIPMatcher.Match(ip)
}
type ipnetFilter struct {