cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] curl: Support CURLOPT_LOCALADDR to bind to local address.

From: Ben Greear <>
Date: Wed, 16 Jan 2013 13:45:16 -0800

On 01/16/2013 01:14 PM, Daniel Stenberg wrote:
> On Wed, 16 Jan 2013, wrote:
>> This allows a user to bind to both an interface (with CURLOPT_INTERFACE) and a local IP address. In doing so, it allows the user to work-around some serious
>> performance issues on machines with lots of virtual interfaces because curl no longer has to scan all interfaces each time it makes a connection.
> If we want to bind to a specific IP address instead of a specific interface (like when we use the "host!" prefix), doesn't it already skip the lengthy scan of
> all the interfaces?

Yes, it would...but then I can't get the SO_BINDTODEVICE logic to be active....


Ben Greear <>
Candela Technologies Inc
List admin:
Received on 2013-01-16