1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-08 13:49:29 +03:00

Specifically ask for IP4 addresses if we don't have IP6 support.

(This used to be commit 4786654992)
This commit is contained in:
James Peach
2007-12-09 14:01:57 -08:00
parent c553b6f7fa
commit 39f0e6d22c

View File

@ -1244,6 +1244,11 @@ static NTSTATUS resolve_hosts(const char *name, int name_type,
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_ADDRCONFIG;
#if !defined(HAVE_IPV6)
/* Unless we have IPv6, we really only want IPv4 addresses back. */
hints.ai_family = AF_INET;
#endif
ret = getaddrinfo(name,
NULL,
&hints,