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, }, }, {