MINOR: cli: set the ACCESS_MASTER* bits on the master bind_conf
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 14:00:57 +0000 (15:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 18:09:19 +0000 (19:09 +0100)
commite283ee626573439a0fedd05186c34ec87844827d
tree64bfaee7e6ebb70fa1cd807e1e735a8220d86ee9
parent44511502518db3f179e4267ea340633ddce3bd55
MINOR: cli: set the ACCESS_MASTER* bits on the master bind_conf

Right now the code is a bit hackish, it tests for the keyword's level
flags but checks the applet's origin to compare the bits. Let's start
by properly setting the ACCESS_MASTER_ONLY and ACCESS_MASTER flags on
the master CLI's bind_conf so that they are automatically present
all the time.
src/cli.c