From: Willy Tarreau Date: Fri, 12 Feb 2021 12:28:22 +0000 (+0100) Subject: BUG/MINOR: cfgparse: do not mention "addr:port" as supported on proxy lines X-Git-Tag: v2.4-dev8~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2ec994523067bc03c0e631e4f5d4ba8dae02cb9;p=thirdparty%2Fhaproxy.git BUG/MINOR: cfgparse: do not mention "addr:port" as supported on proxy lines The very old error message indicating that a proxy name is mandatory still had a reference to the optional addr:port argument while this one is explicitly rejected a few lines later since at least 1.9. This is harmless but confusing. This can be backported to 2.0. --- diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c index 3c66e619b7..80b845a71d 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -189,8 +189,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) if (rc != PR_CAP_NONE) { /* new proxy */ if (!*args[1]) { - ha_alert("parsing [%s:%d] : '%s' expects an argument and\n" - " optionally supports [addr1]:port1[-end1]{,[addr]:port[-end]}...\n", + ha_alert("parsing [%s:%d] : '%s' expects an argument\n", file, linenum, args[0]); err_code |= ERR_ALERT | ERR_ABORT; goto out;