mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Remove check for addIPv6Checks which evaluates to true
This commit is contained in:
parent
8cf05f514c
commit
4639ced630
@ -984,11 +984,9 @@ func RunJoinNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.JoinConfigura
|
|||||||
checks = append(checks,
|
checks = append(checks,
|
||||||
HTTPProxyCheck{Proto: "https", Host: ipstr},
|
HTTPProxyCheck{Proto: "https", Host: ipstr},
|
||||||
)
|
)
|
||||||
if !addIPv6Checks {
|
if ip := net.ParseIP(ipstr); ip != nil {
|
||||||
if ip := net.ParseIP(ipstr); ip != nil {
|
if utilsnet.IsIPv6(ip) {
|
||||||
if utilsnet.IsIPv6(ip) {
|
addIPv6Checks = true
|
||||||
addIPv6Checks = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user