diff --git a/dns/filters.go b/dns/filters.go index b51e6402..11c85c2c 100644 --- a/dns/filters.go +++ b/dns/filters.go @@ -92,6 +92,10 @@ type geoSiteFilter struct { } func NewGeoSite(group string) (fallbackDomainFilter, error) { + if err := geodata.InitGeoSite(); err != nil { + log.Errorln("can't initial GeoSite: %s", err) + return nil, err + } matcher, _, err := geodata.LoadGeoSiteMatcher(group) if err != nil { return nil, err