From: Willy Tarreau Date: Wed, 2 Apr 2025 09:17:05 +0000 (+0200) Subject: DOC: config: fix two missing "content" in "tcp-request" examples X-Git-Tag: v3.2-dev9~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3de99a09192e07a511c4956692a9cff0b252a77f;p=thirdparty%2Fhaproxy.git DOC: config: fix two missing "content" in "tcp-request" examples 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. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 1571b9340..6ae4b93b8 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -14353,8 +14353,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