]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: tcp-rules: add missing actions in the tcp-request error message
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 12:42:43 +0000 (13:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 13:13:20 +0000 (14:13 +0100)
The tcp-request error message only mentions "accept", "reject" and
track-sc*, but there are a few other ones that were missing, so let's
add them.

This could be backported, though it's not likely that it will help anyone
with an existing config.

src/tcp_rules.c

index 24858ccfb38ba248f7b2803f08e44ad4f69a916e..de99cff647a194274a456f0bb9960025df071c55 100644 (file)
@@ -956,7 +956,7 @@ static int tcp_parse_request_rule(char **args, int arg, int section_type,
                        else
                                action_build_list(&tcp_req_cont_keywords, &trash);
                        memprintf(err,
-                                 "'%s %s' expects 'accept', 'reject', 'track-sc0' ... 'track-sc%d', %s "
+                                 "'%s %s' expects 'accept', 'reject', 'capture', 'expect-proxy', 'expect-netscaler-ip', 'track-sc0' ... 'track-sc%d', %s "
                                  "in %s '%s' (got '%s').\n",
                                  args[0], args[1], MAX_SESS_STKCTR-1,
                                  trash.area, proxy_type_str(curpx),