소스 검색

Fix IP rule with custom GeoIP file

https://github.com/v2ray/v2ray-core/commit/b0edbec53e323796302325c3d7357d023f189657
Kslr 6 년 전
부모
커밋
09075e62fd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 			}