We fake up a dual IPv4/IPv6 response to localhost for testing, but it
assumed localhost6 or ip6-localhost entries. Fall back to "::1" which
should always work.
addr2 = net_client_lookup("localhost6", buf,
AF_UNSPEC,
SOCK_STREAM);
addr2 = net_client_lookup("localhost6", buf,
AF_UNSPEC,
SOCK_STREAM);
+ if (!addr2)
+ addr2 = net_client_lookup("::1", buf,
+ AF_UNSPEC,
+ SOCK_STREAM);
} else if (addr->ai_family == AF_INET6)
/* IPv6 only? This is a guess... */
addr2 = net_client_lookup("ip4-localhost", buf,
} else if (addr->ai_family == AF_INET6)
/* IPv6 only? This is a guess... */
addr2 = net_client_lookup("ip4-localhost", buf,