curl-users
Re: Bug or not ?
Date: Thu, 25 Jun 2009 17:00:31 +0200
>>
>> curl http://www.myipv6.org/
>>
>> The page say "You are connected thru an ipv4, your ip is
>> 82.246.88.xx" (in French).
>>
>> To use ipv6 with curl I must do :
>> curl -ipv6 http://www.myipv6.org/
>>
>> (The page says the same as with Firefox)
>>
>> When both are available, Curl should use ipv6 by default ?
>
> curl uses getaddrinfo() to resolve names when built IPv6-enabled (if
> c-ares wasn't specified at build time) and that returns the addresses
> in an order you decide with the /etc/gai.conf file (on Linux). curl
> will simply create the socket using the IP version that matches the
> address it will use. In your case, getaddrinfo() clearly returns IPv4
> addresses before IPv6 ones.
>
$ curl -V
curl 7.19.4 (i586-mandriva-linux-gnu) libcurl/7.19.4 GnuTLS/2.6.4
zlib/1.2.3 c-ares/1.6.0 libidn/1.13 libssh2/1.0
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
So c-ares was specified at build time ?
Is there a mean to get ipv6 by default with this build ?
Cheers,
Olivier
-- Mandriva Olivier Rosello - Ingénieur Projets de Recherche Mobile : +33 6 60 83 14 35 Tel : +33 9 77 19 66 88 / +33 950 733 755 Fax : +33 9 55 733 755 ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-06-25