Hello,

I would like to submit a patch to allow IP addresses to be included in the list 
of no proxy hosts.

Currently the no proxy logic allows for domain names to be specified.  For 
instance, specifying "hp.com" will prevent the proxy from being used for 
accessing all hosts that end in "hp.com".  However, if I want to prevent the 
proxy from being used for a range of IP addresses I don't have any way to do 
this, since the logic in check_noproxy only compares the end of the requested 
host against the entry in the no proxy list.

With this change, it is possible to specify a no proxy list like "192.168.*", 
which would prevent the proxy from being used to access any host that begins 
with "192.168.", for instance http://192.168.0.1/ would not go through the 
proxy server with this change.

 I created a short list of hosts and a no proxy list with this change and could 
not see any ill side effects from this change.

I used Tortoise SVN to create my patch, against a repository where I have 
libcurl code checked in (version 7.19.7).

Thanks,
Mark Salisbury
Hewlett-Packard Company

Attachment: noproxy.patch
Description: noproxy.patch

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to