From 7673f52431d94799ad7cfa24a7cfbce102613fea Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 18 Mar 2023 22:33:39 +0800 Subject: [PATCH] fix: geosite of nameserver-policy cannot be loaded correctly --- dns/filters.go | 4 ++++ 1 file changed, 4 insertions(+) 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