From: Willy Tarreau Date: Thu, 23 Jul 2009 11:24:23 +0000 (+0200) Subject: [MINOR] config: the "capture" keyword is not allowed in backends X-Git-Tag: v1.4-dev1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b6b1a984d6a587892afc88d03862c3fc3681bce;p=thirdparty%2Fhaproxy.git [MINOR] config: the "capture" keyword is not allowed in backends The "capture" keyword is only supported by frontends, fix the check. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index a0bdce3844..015dba6b02 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -894,7 +894,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) curproxy->iface_len = defproxy.iface_len; } - if (curproxy->cap & PR_CAP_RS) { + if (curproxy->cap & PR_CAP_FE) { if (defproxy.capture_name) curproxy->capture_name = strdup(defproxy.capture_name); curproxy->capture_namelen = defproxy.capture_namelen; @@ -1386,7 +1386,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) } } /* Url App Session */ else if (!strcmp(args[0], "capture")) { - if (warnifnotcap(curproxy, PR_CAP_RS, file, linenum, args[0], NULL)) + if (warnifnotcap(curproxy, PR_CAP_FE, file, linenum, args[0], NULL)) err_code |= ERR_WARN; if (!strcmp(args[1], "cookie")) { /* name of a cookie to capture */