]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: vars: name the temporary proxy "CFG" instead of "CLI" for global vars
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Sep 2021 06:19:43 +0000 (08:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Sep 2021 09:01:48 +0000 (11:01 +0200)
We're using a dummy temporary proxy when creating global variables in
the configuration file, it was copied from the CLI's code and was
mistakenly called "CLI", better name it "CFG". It should not appear
anywhere except maybe when debugging cores.

src/vars.c

index 59f802a30890c527726e0e202783f0698da48a0e..d4f41199447220aa2e06e588298515b660f53df6 100644 (file)
@@ -902,7 +902,7 @@ static int vars_parse_global_set_var(char **args, int section_type, struct proxy
                                      char **err)
 {
        struct proxy px = {
-               .id = "CLI",
+               .id = "CFG",
                .conf.args.file = file,
                .conf.args.line = line,
        };