Remove check for addIPv6Checks which evaluates to true

This commit is contained in:
Ted Yu 2019-08-20 19:02:27 -07:00 committed by Ted Yu
parent 8cf05f514c
commit 4639ced630

View File

@ -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
}
}
}