diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-08-20 09:18:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-08-20 09:18:12 +0000 |
commit | a231a968413f13657cf3083ceb7430c20e025139 (patch) | |
tree | 7ea1681d07fca3100745da00d1c257385da33971 /lib | |
parent | 93b61bf0d392ca1e6f923d6fc252cb9778ab5ce2 (diff) |
actually, we check for a numerical host using either ipv4 or ipv6, as neither
should result in a reverse dns lookup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c index d01c4476e..e72794251 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -247,7 +247,8 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, } } - if(1 == inet_pton(pf, hostname, addrbuf)) { + if((1 == inet_pton(AF_INET, hostname, addrbuf)) || + (1 == inet_pton(AF_INET6, hostname, addrbuf))) { /* the given address is numerical only, prevent a reverse lookup */ ai_flags = AI_NUMERICHOST; } |