Fix: dns fallback logic

This commit is contained in:
Dreamacro
2020-03-13 00:11:54 +08:00
parent b263095533
commit 9471d80785
2 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,7 @@ type geoipFilter struct{}
func (gf *geoipFilter) Match(ip net.IP) bool {
record, _ := mmdb.Instance().Country(ip)
return record.Country.IsoCode == "CN" || record.Country.IsoCode == ""
return record.Country.IsoCode != "CN" && record.Country.IsoCode != ""
}
type ipnetFilter struct {