diff --git a/infra/conf/router.go b/infra/conf/router.go index 5a4e29494..9c697349c 100644 --- a/infra/conf/router.go +++ b/infra/conf/router.go @@ -323,7 +323,7 @@ func toCidrList(ips StringList) ([]*router.GeoIP, error) { filename := kv[0] country := kv[1] - geoip, err := loadGeoIP(strings.ToUpper(country)) + geoip, err := loadIP(filename, strings.ToUpper(country)) if err != nil { return nil, newError("failed to load IPs: ", country, " from ", filename).Base(err) }