Fix IPv6 urls to comply with Go 1.26

See also https://go.dev/doc/go1.26#neturlpkgneturl
This commit is contained in:
Jesper Noordsij 2026-03-09 19:41:26 +01:00
parent 14ce87684a
commit fe9d47f5ef
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

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

View file

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