From: Aurelien DARRAGON Date: Wed, 5 Oct 2022 16:09:33 +0000 (+0200) Subject: DOC: configuration: missing 'if' in tcp-request content example X-Git-Tag: v2.7-dev8~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d49b559a15a8781ba37877812d4d3ddf2cea9eb4;p=thirdparty%2Fhaproxy.git DOC: configuration: missing 'if' in tcp-request content example An example given for tcp-request content rule with lua was missing 'if' keyword. Using it "as is" makes haproxy unhappy. The example was introduced with 579d83b05. So it may be backported as far as 1.6, but it is a really minor typo. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index f16c779b1e..f93067b2d1 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -12748,7 +12748,7 @@ tcp-request content [{if | unless} ] available. Example: - tcp-request content use-service lua.deny { src -f /etc/haproxy/blacklist.lst } + tcp-request content use-service lua.deny if { src -f /etc/haproxy/blacklist.lst } Example: