1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

Merge pull request #1694 from heapops/bugfix_rule_ip_ext_file

Fix IP rule with custom GeoIP file
This commit is contained in:
Kslr 2019-05-31 12:53:46 +08:00 committed by GitHub
commit b0edbec53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}