Browse Source

Merge pull request #1694 from heapops/bugfix_rule_ip_ext_file

Fix IP rule with custom GeoIP file
Kslr 6 years ago
parent
commit
b0edbec53e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      infra/conf/router.go

+ 1 - 1
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)
 			}