From c3df768f7991039c73cbbe643f74719ca229f7da Mon Sep 17 00:00:00 2001 From: MetaCubeX Date: Wed, 16 Mar 2022 17:33:08 +0800 Subject: [PATCH] [build test] --- dns/filters.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/filters.go b/dns/filters.go index 9933a946..a756d872 100644 --- a/dns/filters.go +++ b/dns/filters.go @@ -5,7 +5,7 @@ import ( "github.com/Dreamacro/clash/component/geodata/router" "github.com/Dreamacro/clash/component/mmdb" "github.com/Dreamacro/clash/component/trie" - "github.com/Dreamacro/clash/config" + C "github.com/Dreamacro/clash/constant" "github.com/Dreamacro/clash/log" "net" "strings" @@ -22,7 +22,7 @@ type geoipFilter struct { var geoIPMatcher *router.GeoIPMatcher func (gf *geoipFilter) Match(ip net.IP) bool { - if !config.GeodataMode { + if !C.GeodataMode { record, _ := mmdb.Instance().Country(ip) return !strings.EqualFold(record.Country.IsoCode, gf.code) && !ip.IsPrivate() }