From b30b0c3840dcfa559c8f6cb486b2eafeb8f75cff Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 17 Feb 2023 17:43:25 +0100 Subject: [PATCH] lib1560: add IPv6 canonicalization tests Closes #10552 --- tests/libtest/lib1560.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index d4eeef0e59..bfb9dba990 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -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}, -- 2.47.3