]> git.kaiwu.me - haproxy.git/commit
MINOR: resolvers: add "dns-accept-family auto" to rely on detected IPv6
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:18:06 +0000 (17:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:52:28 +0000 (17:52 +0200)
commit69b051d1dc053629bbc1577c4e232471b88686dc
tree192b8bbed9855e12f22322801b063119f77312e3
parent5d41d476f386d3e4ba6a6c87936ef3d9ab6f1601
MINOR: resolvers: add "dns-accept-family auto" to rely on detected IPv6

Instead of always having to force IPv4 or IPv6, let's now also offer
"auto" which will only enable IPv6 if the system has a default gateway
for it. This means that properly configured dual-stack systems will
default to "ipv4,ipv6" while those lacking a gateway will only use
"ipv4". Note that no real connectivity test is performed, so firewalled
systems may still get it wrong and might prefer to rely on a manual
"ipv4" assignment.
doc/configuration.txt
include/haproxy/resolvers-t.h
src/resolvers.c