diff --git a/cmd/kubeadm/app/preflight/checks.go b/cmd/kubeadm/app/preflight/checks.go index f1b6071e76c..3fe62d2b208 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -984,11 +984,9 @@ func RunJoinNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.JoinConfigura checks = append(checks, HTTPProxyCheck{Proto: "https", Host: ipstr}, ) - if !addIPv6Checks { - if ip := net.ParseIP(ipstr); ip != nil { - if utilsnet.IsIPv6(ip) { - addIPv6Checks = true - } + if ip := net.ParseIP(ipstr); ip != nil { + if utilsnet.IsIPv6(ip) { + addIPv6Checks = true } } }