]> git.ipfire.org Git - thirdparty/curl.git/commit
noproxy: support proxies specified using cidr notation
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Oct 2022 13:21:12 +0000 (15:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 21 Oct 2022 11:39:20 +0000 (13:39 +0200)
commit1e9a538e05c0107c54ef81d9de7cd0b27cd13309
treef8b6d6137e25572bf487cd699a10fbb8e950ddf0
parentb15ca64bb029c626439e74ef9d457784f62e13ee
noproxy: support proxies specified using cidr notation

For both IPv4 and IPv6 addresses. Now also checks IPv6 addresses "correctly"
and not with string comparisons.

Split out the noproxy checks and functionality into noproxy.c

Added unit test 1614 to verify checking functions.

Reported-by: Mathieu Carbonneaux
Fixes #9773
Fixes #5745
Closes #9775
docs/KNOWN_BUGS
docs/libcurl/opts/CURLOPT_NOPROXY.3
lib/Makefile.inc
lib/noproxy.c [new file with mode: 0644]
lib/noproxy.h [new file with mode: 0644]
lib/url.c
tests/data/Makefile.inc
tests/data/test1614 [new file with mode: 0644]
tests/unit/Makefile.inc
tests/unit/unit1614.c [new file with mode: 0644]