0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-18 14:19:48 +03:00
This commit is contained in:
JimhHan
2021-04-08 19:19:53 +08:00
parent 1c3abb2ec3
commit 095b17da62
5 changed files with 7 additions and 7 deletions

View File

@ -92,7 +92,7 @@ func find(data, code []byte) []byte {
}
}
func ParaseIPList(ips []string) ([]*GeoIP, error) {
func ParseIPList(ips []string) ([]*GeoIP, error) {
var geoipList []*GeoIP
var customCidrs []*CIDR

View File

@ -25,7 +25,7 @@ func init() {
}
}
func TestParaseIPList(t *testing.T) {
func TestParseIPList(t *testing.T) {
t.Log(os.Getenv("xray.location.asset"))
common.Must(filesystem.CopyFile(platform.GetAssetLocation("geoiptestrouter.dat"), platform.GetAssetLocation("geoip.dat")))
@ -40,7 +40,7 @@ func TestParaseIPList(t *testing.T) {
"ext-ip:geoiptestrouter.dat:!ca",
}
_, err := ParaseIPList(ips)
_, err := ParseIPList(ips)
if err != nil {
t.Fatalf("Failed to parse geoip list, got %s", err)
}