From fe735fc4c40979bec10204d9cc711f202e9d91a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 24 Mar 2010 16:26:47 +0000 Subject: [PATCH] * As long as we don't support IPv6, we shouldn't prefer it when AF_UNSPEC is used in getaddrinfo() (this solves "localhost" being resolved to ::1 by default). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35942 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/network/libbind/irs/dns_ho.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kits/network/libbind/irs/dns_ho.c b/src/kits/network/libbind/irs/dns_ho.c index d279b685a1..e8218b9f56 100644 --- a/src/kits/network/libbind/irs/dns_ho.c +++ b/src/kits/network/libbind/irs/dns_ho.c @@ -578,6 +578,7 @@ ho_addrinfo(struct irs_ho *this, const char *name, const struct addrinfo *pai) switch (pai->ai_family) { case AF_UNSPEC: +#if 0 /* prefer IPv6 */ q->qclass = C_IN; q->qtype = T_AAAA; @@ -591,6 +592,7 @@ ho_addrinfo(struct irs_ho *this, const char *name, const struct addrinfo *pai) q2->anslen = sizeof(q2->qbuf); q2->action = RESTGT_DOALWAYS; break; +#endif case AF_INET: q->qclass = C_IN; q->qtype = T_A;