mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
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.
This commit is contained in:
parent
4451150251
commit
e283ee6265
1 changed files with 1 additions and 0 deletions
|
|
@ -2645,6 +2645,7 @@ int mworker_cli_proxy_new_listener(char *line)
|
|||
|
||||
bind_conf->level &= ~ACCESS_LVL_MASK;
|
||||
bind_conf->level |= ACCESS_LVL_ADMIN;
|
||||
bind_conf->level |= ACCESS_MASTER | ACCESS_MASTER_ONLY;
|
||||
|
||||
if (!str2listener(args[0], mworker_proxy, bind_conf, "master-socket", 0, &err)) {
|
||||
ha_alert("Cannot create the listener of the master CLI\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue