diff options
author | Werner Koch <[email protected]> | 2019-11-12 19:29:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-11-12 19:35:12 +0000 |
commit | 12def3a84e0358528347107dc88cfe740a54941f (patch) | |
tree | 50fa8ff917a26e4dc5f963e03718133d9e0b0896 /dirmngr/dirmngr.c | |
parent | dirmngr: Tune down err on missing ldapservers file (diff) | |
download | gnupg-12def3a84e0358528347107dc88cfe740a54941f.tar.gz gnupg-12def3a84e0358528347107dc88cfe740a54941f.zip |
dirmngr: Use IPv4 or IPv6 interface only if available.
* dirmngr/dns-stuff.c (cached_inet_support): New variable.
(dns_stuff_housekeeping): New.
(check_inet_support): New.
* dirmngr/http.c (connect_server): Use only detected interfaces.
* dirmngr/dirmngr.c (housekeeping_thread): Flush the new cache.
--
This currently works only for Windows but that is where users really
ran into problems. The old workaround was to configure disable-ipv4
or disable-ipv6.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | dirmngr/dirmngr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index f7dd029f6..7948e3f24 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -1962,6 +1962,7 @@ housekeeping_thread (void *arg) memset (&ctrlbuf, 0, sizeof ctrlbuf); dirmngr_init_default_ctrl (&ctrlbuf); + dns_stuff_housekeeping (); ks_hkp_housekeeping (curtime); if (network_activity_seen) { |