You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/net/url/url_test.go
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -726,7 +726,7 @@ var parseRequestURLTests = []struct {
726
726
{"https://[2001:db8::1]/path", true}, // compressed IPv6 address with path
727
727
{"https://[fe80::1%25eth0]/path?query=1", true}, // link-local with zone, path, and query
{"http://[192.168.0.1]/", true}, // IPv4 in brackets
1676
-
{"http://[192.168.0.1]:8080/", true}, // IPv4 in brackets with port
1677
-
{"http://[::ffff:192.168.0.1]/", true}, // IPv4-mapped IPv6 in brackets
1678
-
{"http://[::ffff:192.168.0.1]:8080/", true}, // IPv4-mapped IPv6 in brackets with port
1679
-
{"http://[::ffff:c0a8:1]/", true}, // IPv4-mapped IPv6 in brackets (hex)
1680
-
{"http://[not-an-ip]/", true}, // invalid IP string in brackets
1681
-
{"http://[fe80::1%foo]/", true}, // invalid zone format in brackets
{"http://[test.com]/", true}, // domain name in brackets
1675
+
{"http://[192.168.0.1]/", true}, // IPv4 in brackets
1676
+
{"http://[192.168.0.1]:8080/", true}, // IPv4 in brackets with port
1677
+
{"http://[::ffff:192.168.0.1]/", false}, // IPv4-mapped IPv6 in brackets
1678
+
{"http://[::ffff:192.168.0.1000]/", true}, // Out of range IPv4-mapped IPv6 in brackets
1679
+
{"http://[::ffff:192.168.0.1]:8080/", false}, // IPv4-mapped IPv6 in brackets with port
1680
+
{"http://[::ffff:c0a8:1]/", false}, // IPv4-mapped IPv6 in brackets (hex)
1681
+
{"http://[not-an-ip]/", true}, // invalid IP string in brackets
1682
+
{"http://[fe80::1%foo]/", true}, // invalid zone format in brackets
{"http://[test.com]/", true}, // domain name in brackets
0 commit comments