From 4dc67865e1e3d518b57bd314ec556d80e871b12b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 2 Apr 2025 11:17:05 +0200 Subject: [PATCH] DOC: config: fix two missing "content" in "tcp-request" examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. (cherry picked from commit 3de99a09192e07a511c4956692a9cff0b252a77f) Signed-off-by: Aurelien DARRAGON (cherry picked from commit 63384d0eb05fe8543277f8bca2d874311e867211) Signed-off-by: Aurelien DARRAGON --- doc/configuration.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 8bcc3b7..1e08672 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -13396,8 +13396,8 @@ tcp-request content [{if | unless} ] # 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 -- 1.7.10.4