From 0563d3a4bf465fc246f0b6432230ab66f9a3b695 Mon Sep 17 00:00:00 2001 From: heapops Date: Sat, 18 May 2019 13:10:40 +0800 Subject: [PATCH] Fix ip rule with custom geoip file Signed-off-by: heapops --- infra/conf/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/router.go b/infra/conf/router.go index 5a4e2949..9c697349 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) }