From 4cef0cc3f99c553b43b929f60461bde11d371e0a Mon Sep 17 00:00:00 2001 From: hniksic Date: Fri, 14 Nov 2003 05:51:32 -0800 Subject: [PATCH] [svn] Document that Winsock's gethostbyname might not grok numeric addresses. --- src/host.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)