mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🐛 修复 IPv6 取 IP
This commit is contained in:
@@ -123,7 +123,7 @@ func resolveIP(addr string, ipv6 bool) (string, error) {
|
||||
for _, ans := range r.Answer {
|
||||
if ipv6 {
|
||||
if aaaa, ok := ans.(*dns.AAAA); ok {
|
||||
url[0] = aaaa.AAAA.String()
|
||||
url[0] = "[" + aaaa.AAAA.String() + "]"
|
||||
ipv6Resolved = true
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user