mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
update: 未获取到country code时继续查询下一个API
This commit is contained in:
@@ -102,6 +102,10 @@ func fetchGeoIP(servers []string, isV6 bool) geoIP {
|
|||||||
if !isV6 && !strings.Contains(ip.IP, ".") {
|
if !isV6 && !strings.Contains(ip.IP, ".") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// 未获取到国家码
|
||||||
|
if ip.CountryCode == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return ip
|
return ip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user