Browse Source

Fix ip rule with custom geoip file

Signed-off-by: heapops <heapbin1@gmail.com>
pull/1694/head
heapops 6 years ago
parent
commit
0563d3a4bf
  1. 2
      infra/conf/router.go

2
infra/conf/router.go

@ -323,7 +323,7 @@ func toCidrList(ips StringList) ([]*router.GeoIP, error) {
filename := kv[0] filename := kv[0]
country := kv[1] country := kv[1]
geoip, err := loadGeoIP(strings.ToUpper(country)) geoip, err := loadIP(filename, strings.ToUpper(country))
if err != nil { if err != nil {
return nil, newError("failed to load IPs: ", country, " from ", filename).Base(err) return nil, newError("failed to load IPs: ", country, " from ", filename).Base(err)
} }

Loading…
Cancel
Save