1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

Fix ip rule with custom geoip file

Signed-off-by: heapops <heapbin1@gmail.com>
This commit is contained in:
heapops 2019-05-18 13:10:40 +08:00
parent 2544c2f8f5
commit 0563d3a4bf

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