update: 未获取到country code时继续查询下一个API

This commit is contained in:
Akkia 2022-07-05 20:08:57 +08:00
parent fce3869805
commit f41d1ca4a0
No known key found for this signature in database
GPG Key ID: DABE9A4AB2DD7EF3

View File

@ -102,6 +102,10 @@ func fetchGeoIP(servers []string, isV6 bool) geoIP {
if !isV6 && !strings.Contains(ip.IP, ".") {
continue
}
// 未获取到国家码
if ip.CountryCode == "" {
continue
}
return ip
}
}