Skip to content

Commit b8e8259

Browse files
committed
Set default host address value to localhost.
Fixes #1060 Usage of `localhost` is family agnostic and will work regardless if cluster is IPv4 or IPv6. The current value of `127.0.0.1` only works for IPv4 clusters.
1 parent 8d4eb38 commit b8e8259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/healthchecker/types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const (
4444
kubeletPortKey = "KUBELET_PORT"
4545
kubeProxyPortKey = "KUBEPROXY_PORT"
4646

47-
defaultHostAddress = "127.0.0.1"
47+
defaultHostAddress = "localhost"
4848
defaultKubeletPort = "10248"
4949
defaultKubeproxyPort = "10256"
5050
)

0 commit comments

Comments
 (0)