curl-library
Re: Limiting IP addresses CURL is allowed to connect to.
Date: Tue, 5 Aug 2008 14:57:49 +0200
Something like this, maybe?
On Tue, Aug 5, 2008 at 8:22 AM, Sam Olsen <psyzzle_at_gmail.com> wrote:
> 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
>>
>
>
- text/x-diff attachment: connectfunction.diff