mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-10 21:38:50 +01:00
dirmngr: Better handle systems without IPv6 or IPv4.
* dirmngr/dns-stuff.c (resolve_name_standard): Use AI_ADDRCONFIG.
This commit is contained in:
parent
927f34603d
commit
0e3c9f184a
@ -146,8 +146,9 @@ resolve_name_standard (const char *name, unsigned short port,
|
|||||||
memset (&hints, 0, sizeof hints);
|
memset (&hints, 0, sizeof hints);
|
||||||
hints.ai_family = want_family;
|
hints.ai_family = want_family;
|
||||||
hints.ai_socktype = want_socktype;
|
hints.ai_socktype = want_socktype;
|
||||||
|
hints.ai_flags = AI_ADDRCONFIG;
|
||||||
if (r_canonname)
|
if (r_canonname)
|
||||||
hints.ai_flags = AI_CANONNAME;
|
hints.ai_flags |= AI_CANONNAME;
|
||||||
|
|
||||||
if (port)
|
if (port)
|
||||||
snprintf (portstr, sizeof portstr, "%hu", port);
|
snprintf (portstr, sizeof portstr, "%hu", port);
|
||||||
|
Loading…
Reference in New Issue
Block a user