MEDIUM: cfgparse: parse only "global" section in MODE_DISCOVERY
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 1 Oct 2024 14:11:01 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commite2b47682243130b502ff835c6ed2e50b65451738
tree76f03ace4ce98ec6c029d5f22209277ce435fb57
parent699be6a55df2d56e30686f717a1ea1795d29cb2d
MEDIUM: cfgparse: parse only "global" section in MODE_DISCOVERY

This commit is a part of the series to add a support of discovery mode in the
configuration parser and in initialization sequence.

So, in discovery mode, when we read the configuration the first time, we
parse for the moment only the "global" section. Unknown section names will be
ignored.
src/cfgparse.c