cURL / Mailing Lists / curl-library / Single Mail


RE: CURLOPT_LOCALPORT option broken ?!

From: Daniel Stenberg <>
Date: Fri, 20 Feb 2009 22:39:33 +0100 (CET)

On Fri, 20 Feb 2009, Senthil Raja Velu wrote:

> I am not clear about the patch "curl_interface_and_port_patch_2nd_try.diff".
> Do I need to use both the interface and port all the time and should not use
> any one of those alone.

> In that case, if at all I have to use only the port, could I set the
> interface as "" as a work-around for ADDR_ANY. Please clarify.

The patch should not alter any requirements or API, it should just make what
previously didn't work (CURLOPT_INTERFACE + CURLOPT_LOCALPORT) function
properly and as you expected.

Thus the code you showed that failed before should run now with this patch

Received on 2009-02-20