Skip to content

Commit 42f828a

Browse files
authored
Fix nil pointer error from proxy registration check (#23021)
1 parent 958227e commit 42f828a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

command/connect/envoy/envoy.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,11 +528,7 @@ func (c *cmd) proxyRegistration(svcForSidecar *api.AgentService) (*api.AgentServ
528528
// fallback to localhost as the gateway has to reside in the same network namespace
529529
// as the agent
530530
tcpCheckAddr = "127.0.0.1"
531-
ds, err := netutil.IsDualStack(nil, false)
532-
if err == nil {
533-
return nil, err
534-
}
535-
if ds {
531+
if c.useIPv6loopback {
536532
tcpCheckAddr = "::1"
537533
}
538534
}

0 commit comments

Comments
 (0)