* 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
This commit is contained in:
parent
20fb872810
commit
fe735fc4c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue