From fe9d47f5ef2c5b8fef24a0e69e3609a0fa98b7ee Mon Sep 17 00:00:00 2001 From: Jesper Noordsij Date: Mon, 9 Mar 2026 19:41:26 +0100 Subject: [PATCH] Fix IPv6 urls to comply with Go 1.26 See also https://go.dev/doc/go1.26#neturlpkgneturl --- pkg/muxer/http/matcher_v2_test.go | 2 +- pkg/muxer/http/mux_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/muxer/http/matcher_v2_test.go b/pkg/muxer/http/matcher_v2_test.go index d05e57e75b..bb573bb86e 100644 --- a/pkg/muxer/http/matcher_v2_test.go +++ b/pkg/muxer/http/matcher_v2_test.go @@ -945,7 +945,7 @@ func Test_addRoute(t *testing.T) { desc: "Host IPv6", rule: "Host(`10::10`)", expected: map[string]int{ - "http://10::10/foo": http.StatusOK, + "http://[10::10]/foo": http.StatusOK, }, }, { diff --git a/pkg/muxer/http/mux_test.go b/pkg/muxer/http/mux_test.go index 36cc992218..766d5c6c26 100644 --- a/pkg/muxer/http/mux_test.go +++ b/pkg/muxer/http/mux_test.go @@ -47,7 +47,7 @@ func TestMuxer(t *testing.T) { desc: "Host IPv6", rule: "Host(`10::10`)", expected: map[string]int{ - "http://10::10/foo": http.StatusOK, + "http://[10::10]/foo": http.StatusOK, }, }, {