From c38499ceae0b77b912e2a8f3a790496855022b96 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 22 Apr 2023 22:27:31 +0200 Subject: [PATCH] MINOR: listener: do not restrict CLI to first group anymore Now that we're able to run listeners on any set of groups, we don't need to maintain a special case about the stats socket anymore. It used to be forced to group 1 only so as to avoid startup failures in case several groups were configured, but if it's done now, it will automatically bind the needed FDs to have one per group so this is no more an issue. --- src/listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener.c b/src/listener.c index 994e97a..bfb5ece 100644 --- a/src/listener.c +++ b/src/listener.c @@ -1653,7 +1653,7 @@ int bind_complete_thread_setup(struct bind_conf *bind_conf, int *err_code) char *err; err = NULL; - if (thread_resolve_group_mask(&bind_conf->thread_set, (fe == global.cli_fe) ? 1 : 0, &err) < 0) { + if (thread_resolve_group_mask(&bind_conf->thread_set, 0, &err) < 0) { ha_alert("%s '%s': %s in 'bind %s' at [%s:%d].\n", proxy_type_str(fe), fe->id, err, bind_conf->arg, bind_conf->file, bind_conf->line); -- 1.7.10.4