]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: config: warn about "bind-process" deprecation
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 09:37:35 +0000 (11:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:52:42 +0000 (16:52 +0200)
Let's indicate that "bind-process" is deprecated and scheduled for
removal in 2.7, as it only supports "1".

src/cfgparse-listen.c

index 80793d9068eb4adec3fc4e2e9434be8aeee3b139..0929ba4d8ab6ad2b7c6aeca27ac1651517d32ad3 100644 (file)
@@ -616,6 +616,9 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
                        }
                        cur_arg++;
                }
+               ha_warning("parsing [%s:%d]: '%s' has no effect, is deprecated, and will be removed in version 2.7.\n",
+                          file, linenum, args[0]);
+               err_code |= ERR_WARN;
        }
        else if (strcmp(args[0], "acl") == 0) {  /* add an ACL */
                if (curproxy->cap & PR_CAP_DEF) {