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:
@ -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,
|
||||
|
Reference in New Issue
Block a user