]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tools: make str2sa_range() only report AF_CUST_UDP on listeners
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 18:35:12 +0000 (20:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:08 +0000 (22:08 +0200)
commit3baec249b199048721299820f8543e8552fd98ee
treefeaad26b46e94c9e117b5ad6fcab6b92c035df2d
parente835bd8f9105c8ea03c0a1596bd42de999a1d426
MEDIUM: tools: make str2sa_range() only report AF_CUST_UDP on listeners

For now only listeners can make use of AF_CUST_UDP and it requires hacks
in the DNS and logsrv code to remap it to AF_INET. Make str2sa_range()
smarter by detecting that it's called for a listener and only set these
protocol families for listeners. This way we can get rid of the hacks.
src/cfgparse.c
src/log.c
src/tools.c