fix: geosite of nameserver-policy cannot be loaded correctly
This commit is contained in:
parent
f6f02bb5eb
commit
9316c1293e
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue