From c411c5ae4f0700a5dad573d0d338ca2c8a74a038 Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 24 Sep 2025 10:47:18 -0700 Subject: [PATCH] conformance: make backend TLS tests IPv6-safe otherwise we send requests to `http://[fc00/backendtlspolicy-nonexistent-ca-certificate-ref"` which is very wrong --- conformance/utils/kubernetes/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conformance/utils/kubernetes/helpers.go b/conformance/utils/kubernetes/helpers.go index d37d16affa..d32899e20e 100644 --- a/conformance/utils/kubernetes/helpers.go +++ b/conformance/utils/kubernetes/helpers.go @@ -344,7 +344,7 @@ func GatewayAndRoutesMustBeAccepted(t *testing.T, c client.Client, timeoutConfig // If the Gateway has multiple listeners, get a portless gwAddr. // Otherwise, you get the first listener's port, which might not be the one you want. if !usePort { - gwAddr, _, _ = strings.Cut(gwAddr, ":") + gwAddr, _, _ = net.SplitHostPort(gwAddr) } ns := gatewayv1.Namespace(gw.Namespace)