Merge pull request #236 from AkkiaS7/master [skip ci]

update: 未获取到country code时继续查询下一个API
This commit is contained in:
naiba authored and GitHub committed 2022-07-05 23:44:53 +08:00
commit 7495366391
1 file changed
+4
+4
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
}
}