紧急处理 GeoIP API 问题

This commit is contained in:
naiba
2021-07-05 13:44:21 +08:00
parent 8d0e269b73
commit 557cccd770
5 changed files with 16 additions and 15 deletions

View File

@@ -17,13 +17,13 @@ type geoIP struct {
var (
ipv4Servers = []string{
"https://api-ipv4.ip.sb/geoip",
"https://ip4.seeip.org/geoip",
"https://api.ip.sb/geoip",
"https://ip.seeip.org/geoip",
"https://ipapi.co/json",
}
ipv6Servers = []string{
"https://ip6.seeip.org/geoip",
"https://api-ipv6.ip.sb/geoip",
"https://api.ip.sb/geoip",
"https://ip.seeip.org/geoip",
"https://ipapi.co/json",
}
cachedIP, cachedCountry string