Skip to content

Commit 8ee410b

Browse files
tests: internal: add unsupported proxy scheme rejection cases
Add two proxy_url_checks entries that expect failure (-1) for ftp:// and socks5:// proxy URLs, covering the rejection path added when https:// proxy support was introduced. Signed-off-by: Antônio Franco <13881523+antoniomrfranco@users.noreply.github.com>
1 parent 665d27a commit 8ee410b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/internal/utils.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ struct proxy_url_check proxy_url_checks[] = {
667667
/* HTTPS proxy with credentials */
668668
{0, "https://user:pass@proxy.com:443",
669669
"https", "proxy.com", "443", "user", "pass"},
670+
/* Unsupported schemes must be rejected */
671+
{-1, "ftp://proxy.com:21", NULL, NULL, NULL, NULL, NULL},
672+
{-1, "socks5://proxy.com", NULL, NULL, NULL, NULL, NULL},
670673

671674
};
672675

0 commit comments

Comments
 (0)