ares: ask for both IPv4 and IPv6 addresses
authorTommie Gannert <tommie@spotify.com>
Sat, 18 Dec 2010 21:31:39 +0000 (22:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Dec 2010 21:33:27 +0000 (22:33 +0100)
commit8ab137b2bc9630ce20f45fd09b4ed2149afa45fd
treed7142eff2af46a955cc74a2929819bc2e0cbfc65
parentbcfb9ea34cc7cddbbf74376aa16043681e4745a7
ares: ask for both IPv4 and IPv6 addresses

Make the c-ares resolver code ask for both IPv4 and IPv6 addresses when
IPv6 is enabled.

This is a workaround for the missing ares_getaddrinfo() and is a lot
easier to implement.

Note that as long as c-ares returns IPv4 addresses when IPv6 addresses
were requested but missing, this will cause a host's IPv4 addresses to
occur twice in the DNS cache.

URL: http://curl.haxx.se/mail/lib-2010-12/0041.html
lib/hostares.c
lib/hostasyn.c
lib/urldata.h