MINOR: cli/threads: always bind CLI to thread group 1
When using multiple groups, the stats socket starts to emit errors and it's not natural to have to touch the global section just to specify "thread 1/all". Let's pre-attach these sockets to thread group 1. This will cause errors when trying to change the group but this really is not a problem for now as thread groups are not enabled by default. This will make sure configs remain portable and may possibly be relaxed later.
This commit is contained in:
parent
dcbd763fe9
commit
6bdf9452c0
@ -492,6 +492,7 @@ static int cli_parse_global(char **args, int section_type, struct proxy *curpx,
|
|||||||
}
|
}
|
||||||
bind_conf->level &= ~ACCESS_LVL_MASK;
|
bind_conf->level &= ~ACCESS_LVL_MASK;
|
||||||
bind_conf->level |= ACCESS_LVL_OPER; /* default access level */
|
bind_conf->level |= ACCESS_LVL_OPER; /* default access level */
|
||||||
|
bind_conf->bind_tgroup = 1; // bind to a single group in any case
|
||||||
|
|
||||||
if (!str2listener(args[2], global.cli_fe, bind_conf, file, line, err)) {
|
if (!str2listener(args[2], global.cli_fe, bind_conf, file, line, err)) {
|
||||||
memprintf(err, "parsing [%s:%d] : '%s %s' : %s\n",
|
memprintf(err, "parsing [%s:%d] : '%s %s' : %s\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user