discover: Determine connectivity with getaddrinfo()
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 23 May 2018 04:39:17 +0000 (14:39 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 10 Jul 2018 04:42:56 +0000 (14:42 +1000)
commit735a9ed99a56df4e6bc496bdbe30a5aaa80a9685
tree8732d8c53ba2fa2875f1141e30333cbec40a451c
parentd30872fe40c87300e62ef2aea484b9cea618c9de
discover: Determine connectivity with getaddrinfo()

Use getaddrinfo() to determine if a remote URL is reachable instead of
only checking if we have an addresses configured. This avoids, for
example, trying to load an IPv4 URL when only an IPv6 address is
available.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/paths.c
discover/sysinfo.c
discover/sysinfo.h