cURL / Mailing Lists / curl-library / Single Mail


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

From: Sam Olsen <>
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
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
even in the case of hosts resolving to multiple addresses.

On Mon, Aug 4, 2008 at 11:30 PM, Daniel Stenberg <> 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:
> Perhaps it's time to reconsider the idea and brush up the patch...
> --
> /
Received on 2008-08-05