fix: GeoIPMatcher doesn't obey the config when using GeoData

This commit is contained in:
hamjin 2024-02-26 14:38:54 +08:00
parent c49cede02b
commit 9b4857649d

View File

@ -36,7 +36,7 @@ func (gf *geoipFilter) Match(ip netip.Addr) bool {
if geoIPMatcher == nil {
var err error
geoIPMatcher, _, err = geodata.LoadGeoIPMatcher("CN")
geoIPMatcher, _, err = geodata.LoadGeoIPMatcher(gf.code)
if err != nil {
log.Errorln("[GeoIPFilter] LoadGeoIPMatcher error: %s", err.Error())
return false