--- old/curl-7.22.0/lib/hostip6.c 2011-09-04 08:07:24.000000000 -0700 +++ new/curl-7.22.0/lib/hostip6.c 2011-10-14 13:10:52.000000000 -0700 @@ -205,7 +205,11 @@ hints.ai_family = pf; hints.ai_socktype = conn->socktype; - if((1 == Curl_inet_pton(AF_INET, hostname, addrbuf)) || + if(Curl_inet_pton(AF_INET, hostname, addrbuf) > 0) + /* This is a dotted IP address 123.123.123.123-style */ + return Curl_ip2addr(AF_INET, addrbuf, hostname, port); + + if(/*(1 == Curl_inet_pton(AF_INET, hostname, addrbuf)) ||*/ (1 == Curl_inet_pton(AF_INET6, hostname, addrbuf))) { /* the given address is numerical only, prevent a reverse lookup */ hints.ai_flags = AI_NUMERICHOST;