From: hniksic Date: Fri, 14 Nov 2003 13:51:32 +0000 (-0800) Subject: [svn] Document that Winsock's gethostbyname might not grok numeric addresses. X-Git-Tag: v1.13~1404 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=4cef0cc3f99c553b43b929f60461bde11d371e0a [svn] Document that Winsock's gethostbyname might not grok numeric addresses. --- diff --git a/src/host.c b/src/host.c index bb00cfa7..10407b6a 100644 --- a/src/host.c +++ b/src/host.c @@ -488,10 +488,10 @@ lookup_host (const char *host, int silent) struct address_list *al = NULL; #ifndef ENABLE_IPV6 - /* If we're not using getaddrinfo, first check if HOST names a + /* If we're not using getaddrinfo, first check if HOST specifies a numeric IPv4 address. gethostbyname is not required to accept - dotted-decimal IPv4 addresses, and some older implementations - (e.g. the Ultrix one) indeed didn't. */ + dotted-decimal IPv4 addresses, and some implementations (e.g. the + Ultrix one and possibly Winsock) indeed don't. */ { uint32_t addr_ipv4 = (uint32_t)inet_addr (host); if (addr_ipv4 != (uint32_t) -1)