]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sock-inet: detect apparent IPv6 connectivity
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:05:14 +0000 (17:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:52:28 +0000 (17:52 +0200)
commit5d41d476f386d3e4ba6a6c87936ef3d9ab6f1601
tree71a9b3faa8c45056a0d3d45aba2bae03ace2f543
parent2c46c2c042127c60a5efbd7a5304a36624f32786
MINOR: sock-inet: detect apparent IPv6 connectivity

In order to ease dual-stack deployments, we could at least try to
check if ipv6 seems to be reachable. For this we're adding a test
based on a UDP connect (no traffic) on port 53 to the base of
public addresses (2001::) and see if the connect() is permitted,
indicating that the routing table knows how to reach it, or fails.
Based on this result we're setting a global variable that other
subsystems might use to preset their defaults.
include/haproxy/sock_inet.h
src/sock_inet.c