cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Limiting IP addresses CURL is allowed to connect to.

From: Sam Olsen <psyzzle_at_gmail.com>
Date: Tue, 5 Aug 2008 08:22:28 +0200

That patch looks similar to what I had in mind.

I was planning to create a callback hook for singleipconnect() (or even
connect())
that would be controlled by a user-defined CURLOPT_CONNECTFUNCTION option.
Doing so would allow me to prevent connections to all IP addresses not in my
whitelist,
even in the case of hosts resolving to multiple addresses.

On Mon, Aug 4, 2008 at 11:30 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 4 Aug 2008, Daniel Stenberg wrote:
>
> But I can't think of any obvious way to do this with the current set of
>> features...!
>>
>
> Alexey Pesternikov had the same need and provided a patch back in September
> 2007 which we never incorporated:
>
> http://curl.haxx.se/mail/lib-2007-09/0078.html
>
> Perhaps it's time to reconsider the idea and brush up the patch...
>
> --
>
> / daniel.haxx.se
>
Received on 2008-08-05