From be8bedef7b0279a88bbbe8d820dafbfd3f1b6bf1 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Fri, 26 Jul 2019 12:43:26 +0200 Subject: [PATCH] =?UTF-8?q?Don=C2=B4t=20translate=20to=20IPv6=20empty=20ad?= =?UTF-8?q?dresses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/e2e/framework/networking_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/networking_utils.go b/test/e2e/framework/networking_utils.go index 0f527d4d65f..e8aaec3269b 100644 --- a/test/e2e/framework/networking_utils.go +++ b/test/e2e/framework/networking_utils.go @@ -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