]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: tcp-rules: Fix a typo in error messages about expect-netscaler-cip
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Mar 2021 07:53:26 +0000 (08:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Mar 2021 14:41:16 +0000 (15:41 +0100)
It was misspelled (expect-netscaler-ip instead of expect-netscaler-cip). 2
commits are concerned :

 * db67b0ed7 MINOR: tcp-rules: suggest approaching action names on mismatch
 * 72d012fbd CLEANUP: tcp-rules: add missing actions in the tcp-request error message

The first one will not be backported, but the second one was backported as
far as 1.8. Thus this one may also be backported, but only the 2nd part
about the list of accepted keywords.

src/tcp_rules.c

index 21a7c0fd86fc6910f0a38649e3e97fd2c9d8c7b7..761fb715b97c69cbfbc493316c3273269b9ea99f 100644 (file)
@@ -955,7 +955,7 @@ static int tcp_parse_request_rule(char **args, int arg, int section_type,
                        if (kw->parse((const char **)args, &arg, curpx, rule, err) == ACT_RET_PRS_ERR)
                                return -1;
                } else {
-                       const char *extra[] = { "accept", "reject", "capture", "track-sc", "expect-proxy", "expect-netscaler-ip", NULL };
+                       const char *extra[] = { "accept", "reject", "capture", "track-sc", "expect-proxy", "expect-netscaler-cip", NULL };
                        const char *best = NULL;
 
 
@@ -973,7 +973,7 @@ static int tcp_parse_request_rule(char **args, int arg, int section_type,
                        }
 
                        memprintf(err,
-                                 "'%s %s' expects 'accept', 'reject', 'capture', 'expect-proxy', 'expect-netscaler-ip', 'track-sc0' ... 'track-sc%d', %s "
+                                 "'%s %s' expects 'accept', 'reject', 'capture', 'expect-proxy', 'expect-netscaler-cip', 'track-sc0' ... 'track-sc%d', %s "
                                  "in %s '%s' (got '%s').%s%s%s\n",
                                  args[0], args[1], MAX_SESS_STKCTR-1,
                                  trash.area, proxy_type_str(curpx),