]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: make str2listener() not accept datagram sockets anymore
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 14:28:08 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:08 +0000 (22:08 +0200)
commit5e1779abbf175c26343a3ffb67c634d802d959f0
tree85709f8ab48e8d873a302798cd66681d820527ce
parent26ff5dabc0ce62a8383d28ae53ff9880d4364999
MEDIUM: config: make str2listener() not accept datagram sockets anymore

str2listener() was temporarily hacked to support datagram sockets for
the log-forward listeners. This has has an undesirable side effect that
"bind udp@1.2.3.4:5555" was silently accepted as TCP for a bind line.

We don't need this hack anymore since the only user (log-forward) now
relies on str2receiver(). Now such an address will properly be rejected.
src/cfgparse.c
tests/ports.cfg