]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib1560: add IPv6 canonicalization tests
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Feb 2023 16:43:25 +0000 (17:43 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Feb 2023 22:22:05 +0000 (23:22 +0100)
Closes #10552

tests/libtest/lib1560.c

index d4eeef0e594575884c4d9caee187fa004e4a8429..bfb9dba9907fa04f12ef69dddeb120f8789bd39a 100644 (file)
@@ -466,6 +466,18 @@ static const struct testcase get_parts_list[] ={
 };
 
 static const struct urltestcase get_url_list[] = {
+  {"https://[fe80::0000:20c:29ff:fe9c:409b]:80/moo",
+   "https://[fe80::20c:29ff:fe9c:409b]:80/moo",
+   0, 0, CURLUE_OK},
+  {"https://[fe80::020c:29ff:fe9c:409b]:80/moo",
+   "https://[fe80::20c:29ff:fe9c:409b]:80/moo",
+   0, 0, CURLUE_OK},
+  {"https://[fe80:0000:0000:0000:020c:29ff:fe9c:409b]:80/moo",
+   "https://[fe80::20c:29ff:fe9c:409b]:80/moo",
+   0, 0, CURLUE_OK},
+  {"https://[fe80:0:0:0:409b::]:80/moo",
+   "https://[fe80::409b:0:0:0]:80/moo",
+   0, 0, CURLUE_OK},
   {"https://[::%25fakeit];80/moo",
    "",
    0, 0, CURLUE_BAD_PORT_NUMBER},