]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: resolvers: use the runtime IPv6 status instead of boot time one
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2025 07:26:44 +0000 (09:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Apr 2025 07:32:05 +0000 (09:32 +0200)
commit40aceb7414093332e04ff0078b1766a195579b26
treee8439dce507108e9323259079d6ce083f5a45a66
parent7a79f54c98d8fa5d69a02ea443644a4de299aba2
MINOR: resolvers: use the runtime IPv6 status instead of boot time one

On systems where the network is not reachable at boot time (certain HA
systems for example, or dynamically addressed test machines), we'll want
to be able to periodically revalidate the IPv6 reachability status. The
current code makes it complicated because it sets the config bits once
for all at boot time. This commit changes this so that the config bits
are not changed, but instead we rely on a static inline function that
relies on sock_inet6_seems_reachable for every test (really cheap). This
also removes the now unneeded resolvers late init code.

This variable for now is still set at boot time but this will ease the
transition later, as the resolvers code is now ready for this.
src/resolvers.c