From 7eeacf7817715025e84b0fb34655c22bb4a5fda7 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 23 May 2021 13:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20IPv6=20?= =?UTF-8?q?=E5=8F=96=20IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/monitor/myip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/monitor/myip.go b/cmd/agent/monitor/myip.go index a875a68640..e0e540b72d 100644 --- a/cmd/agent/monitor/myip.go +++ b/cmd/agent/monitor/myip.go @@ -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 {