cURL / Mailing Lists / curl-library / Single Mail


Re: a small patch for hostip6.c

From: Yang Tse <>
Date: Sat, 15 Oct 2011 13:36:22 +0200

2011/10/15 Andy Tai wrote:

> Hi, I hope the attached diff for lib/hostip6.c can be considered.  In
> lib/hostip4.c numerical IP addresses can be detected and a trip to the DNS
> resolver is avoided; however this is not the case in hostip6.c.  The
> attached patch makes it the same, at least for IPv4 numerical addresses.

I don't remember if the reason for not doing so was that some stacks
failed later on when addressing '::1' or something. Maybe someone has
more fresh info about this.

In case we actually want to avoid the trip to the resolver there,
calling Curl_str2addr() would be the best option.

List admin:
Received on 2011-10-15