cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl issue with IPv6 and c-ares

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 11 Oct 2008 10:46:36 +0200 (CEST)

On Thu, 9 Oct 2008, Daniel Johnson wrote:

> Maybe it would be safer to default to PF_INET instead? That's what I did
> locally, by deleting the "default:" line. That way one can still explicitly
> ask for IPv6, but IPv4 will be used normally.

Thanks for this great analysis. I think I agree with this conclusion and
suggested fix.

> Ultimately, c-ares should probably be enhanced to better match the behavior
> of getaddrinfo, but I'm already a bit over my head here. :)

Yeah, we should fix c-ares to provide a PF_UNSPEC equivalent so that it can
report both AAAA and A records.

-- 
  / daniel.haxx.se
Received on 2008-10-11