]> git.kaiwu.me - haproxy.git/commit
CLEANUP: cfgparse-listen: simplify the second half of cfg_parse_listen()
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2026 16:48:46 +0000 (18:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 08:30:59 +0000 (10:30 +0200)
commit347fb7cf78dacea52e9c7b747fffd9f5cb881680
tree912cee6c7e5178d190eca09da83f1a63ba83cd7e
parent34c596dc0e0c06e74bab04e833bbbe8a8aa6bb29
CLEANUP: cfgparse-listen: simplify the second half of cfg_parse_listen()

All the proxy keywords are now registered in cfg_kws, so the function
only has to create the sections ("listen", "frontend", "backend" and
"defaults") and to look the keyword up in the registered lists. The
historical indented block that was dealing with known keywords is no
longer necessary and it's the right moment to reindent the few tens
of remaining lines.
src/cfgparse-listen.c