]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: config: fix two missing "content" in "tcp-request" examples
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Apr 2025 09:17:05 +0000 (11:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Apr 2025 09:17:05 +0000 (11:17 +0200)
As reported by Uku Sõrmus in GitHub issue #2917, two "tcp-request" rules
in an example were mistakenly missing the "content" hook, rendering them
invalid.

This can be backported.

doc/configuration.txt

index 1571b9340e58ae6bb76edd98ee943eef8b0483db..6ae4b93b8a14aefd04af167a9f33465889842839 100644 (file)
@@ -14353,8 +14353,8 @@ tcp-request content <action> [{if | unless} <condition>]
         # and reject everything else. (works for HTTP/1 and HTTP/2 connections)
         acl is_host_com hdr(Host) -i example.com
         tcp-request inspect-delay 5s
-        tcp-request switch-mode http if HTTP
-        tcp-request reject   # non-HTTP traffic is implicit here
+        tcp-request content switch-mode http if HTTP
+        tcp-request content reject   # non-HTTP traffic is implicit here
         ...
         http-request reject unless is_host_com