MEDIUM: config: make str2listener() not accept datagram sockets anymore · haproxy/haproxy@5e1779a · GitHub
Skip to content

Commit 5e1779a

Browse files
committed
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.
1 parent 26ff5da commit 5e1779a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/cfgparse.c‎

Lines changed: 1 addition & 1 deletion

‎tests/ports.cfg‎

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)