From 40339e7666c4a022e5bfaebd8caaeadd2c89da2a Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 2 Jun 2023 14:46:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8A=82=E7=82=B9IP=E4=B8=BA?= =?UTF-8?q?IPv6=E6=97=B6=E6=97=A0=E6=B3=95=E5=81=A5=E5=BA=B7=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tasks/health_check_executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tasks/health_check_executor.go b/internal/tasks/health_check_executor.go index 76eb16aa..13933e5d 100644 --- a/internal/tasks/health_check_executor.go +++ b/internal/tasks/health_check_executor.go @@ -260,7 +260,7 @@ func (this *HealthCheckExecutor) runNode(healthCheckConfig *serverconfigs.Health func (this *HealthCheckExecutor) runNodeOnce(healthCheckConfig *serverconfigs.HealthCheckConfig, result *HealthCheckResult) error { // 支持IPv6 if utils.IsIPv6(result.NodeAddr) { - result.NodeAddr = "[" + result.NodeAddr + "]" + result.NodeAddr = configutils.QuoteIP(result.NodeAddr) } if len(healthCheckConfig.URL) == 0 {