]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: configuration: missing 'if' in tcp-request content example
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 5 Oct 2022 16:09:33 +0000 (18:09 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Oct 2022 07:22:05 +0000 (09:22 +0200)
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.

doc/configuration.txt

index f16c779b1e757442579f821cbfcbf706540e0b40..f93067b2d1b782f92c8c9cad51aada43897808fa 100644 (file)
@@ -12748,7 +12748,7 @@ tcp-request content <action> [{if | unless} <condition>]
   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: