mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
💩 update
This commit is contained in:
1 parent
0b84216cfb
commit
b293242088
1 file changed
+3
-3
@@ -65,6 +65,9 @@ func fetchGeoIP(servers []string, isV6 bool) geoIP {
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if ip.IP == "" && ip.Query != "" {
|
||||
ip.IP = ip.Query
|
||||
}
|
||||
// 没取到 v6 IP
|
||||
if isV6 && !strings.Contains(ip.IP, ":") {
|
||||
continue
|
||||
@@ -73,9 +76,6 @@ func fetchGeoIP(servers []string, isV6 bool) geoIP {
|
||||
if !isV6 && !strings.Contains(ip.IP, ".") {
|
||||
continue
|
||||
}
|
||||
if ip.IP == "" && ip.Query != "" {
|
||||
ip.IP = ip.Query
|
||||
}
|
||||
return ip
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user