]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener: detect stream vs dgram conflict during parsing
authorWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 14:20:52 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 May 2022 16:41:55 +0000 (18:41 +0200)
commit64306ccd9759a1765b93f7597676c18280e35d1a
treeeab3c89530a51c39665f31cec51cc6c41110f583
parent91b780a4553031b28796dd47b54eb58a7a1826fa
MINOR: listener: detect stream vs dgram conflict during parsing

Now that we have a function to parse all bind keywords, and that we
know what types of sock-level and xprt-level protocols a bind_conf
is using, it's easier to centralize the check for stream vs dgram
conflict by putting it directly at the end of the args parser. This
way it also works for peers, provides better precision in the report,
and will also allow to validate transport layers. The check was even
extended to detect inconsistencies between xprt layer (which were not
covered before). It can even detect that there are two incompatible
"bind" lines in a single peers section.
src/cfgparse.c
src/listener.c