From 52b8a43d4e85a9f2429cfe7ca58d38cd64829a0d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 13 Oct 2021 11:12:50 +0200 Subject: [PATCH] MINOR: config: No longer remove previous anonymous defaults section When the parsing of a defaults section is started, the previous anonymous defaults section is removed. It may be a problem with referenced defaults sections. And because all unused defautl proxies are removed after the configuration parsing, it is not required to remove it so early. This patch is mandatory to support TCP/HTTP rules in defaults sections. --- src/cfgparse-listen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c index cd3f92b62..e2f412de9 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -232,7 +232,6 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) rc = PR_CAP_BE | PR_CAP_LB; else if (strcmp(args[0], "defaults") == 0) { /* "defaults" must first delete the last no-name defaults if any */ - proxy_destroy_defaults(proxy_find_by_name("", PR_CAP_DEF, 0)); curr_defproxy = NULL; rc = PR_CAP_DEF | PR_CAP_LISTEN; }