]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cfgparse: remove useless checks on no server in backend
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Dec 2025 14:20:39 +0000 (15:20 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 23 Dec 2025 15:35:49 +0000 (16:35 +0100)
A legacy check could be activated at compile time to reject backends
without servers. In practice this is not used anymore and does not have
much sense with the introduction of dynamic servers.

src/cfgparse.c

index bcb53d00b44fd3913204e65b083baa389f167407..5a704084ee795cb5b0198e11d9420cc48e109de6 100644 (file)
@@ -3136,13 +3136,6 @@ init_proxies_list_stage1:
                                                 proxy_type_str(curproxy), curproxy->id);
                                        cfgerr++;
                                }
-#ifdef WE_DONT_SUPPORT_SERVERLESS_LISTENERS
-                               else if (curproxy->srv == NULL) {
-                                       ha_alert("%s '%s' needs at least 1 server in balance mode.\n",
-                                                proxy_type_str(curproxy), curproxy->id);
-                                       cfgerr++;
-                               }
-#endif
                                else if (curproxy->options & PR_O_DISPATCH) {
                                        ha_warning("dispatch address of %s '%s' will be ignored in balance mode.\n",
                                                   proxy_type_str(curproxy), curproxy->id);