[FEAT] Add geodata loader mode switch

This commit is contained in:
Clash-Mini
2022-02-05 00:51:06 +08:00
parent 2bf34c766e
commit c28f42d823
5 changed files with 31 additions and 17 deletions

View File

@ -21,7 +21,7 @@ var geoIPMatcher *router.GeoIPMatcher
func (gf *geoipFilter) Match(ip net.IP) bool {
if geoIPMatcher == nil {
countryCode := "cn"
geoLoader, err := geodata.GetGeoDataLoader("standard")
geoLoader, err := geodata.GetGeoDataLoader(geodata.LoaderName())
if err != nil {
log.Errorln("[GeoIPFilter] GetGeoDataLoader error: %s", err.Error())
return false