Skip to content

Commit

Permalink
fix: geosite of nameserver-policy cannot be loaded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stitchrs committed Mar 18, 2023
1 parent f6f02bb commit 9316c12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dns/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9316c12

Please sign in to comment.