From 05046b942b3b5aa96264b83103fd840a42df4e64 Mon Sep 17 00:00:00 2001 From: P Ajay Rao Date: Wed, 5 Nov 2025 12:07:44 +0530 Subject: [PATCH] Fix nil pointer error from proxy registration check --- command/connect/envoy/envoy.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/command/connect/envoy/envoy.go b/command/connect/envoy/envoy.go index c525b3c63e27..9811ff7789cc 100644 --- a/command/connect/envoy/envoy.go +++ b/command/connect/envoy/envoy.go @@ -528,11 +528,7 @@ func (c *cmd) proxyRegistration(svcForSidecar *api.AgentService) (*api.AgentServ // fallback to localhost as the gateway has to reside in the same network namespace // as the agent tcpCheckAddr = "127.0.0.1" - ds, err := netutil.IsDualStack(nil, false) - if err == nil { - return nil, err - } - if ds { + if c.useIPv6loopback { tcpCheckAddr = "::1" } }