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