From: Willy Tarreau Date: Sat, 22 Apr 2023 20:27:31 +0000 (+0200) Subject: MINOR: listener: do not restrict CLI to first group anymore X-Git-Tag: v2.8-dev8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38499ceae0b77b912e2a8f3a790496855022b96;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/listener.c b/src/listener.c index 994e97a348..bfb5ece835 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);