Skip to content

Commit

Permalink
Merge pull request #80634 from aojea/translatev4v6
Browse files Browse the repository at this point in the history
Don´t translate to IPv6 empty addresses
  • Loading branch information
k8s-ci-robot committed Jul 26, 2019
2 parents 2c17bc3 + be8bede commit ee84c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/framework/networking_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ var NetexecImageName = imageutils.GetE2EImage(imageutils.Agnhost)
// adding the well known prefix "0::ffff:" https://tools.ietf.org/html/rfc2765
// if the ip is IPv4 and the cluster IPFamily is IPv6, otherwise returns the same ip
func TranslateIPv4ToIPv6(ip string) string {
if TestContext.IPFamily == "ipv6" && !k8utilnet.IsIPv6String(ip) {
if TestContext.IPFamily == "ipv6" && !k8utilnet.IsIPv6String(ip) && ip != "" {
ip = "0::ffff:" + ip
}
return ip
Expand Down

0 comments on commit ee84c95

Please sign in to comment.