mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02:00
DOC: config: fix two missing "content" in "tcp-request" examples
As reported by Uku Srmus in GitHub issue #2917, two "tcp-request" rules in an example were mistakenly missing the "content" hook, rendering them invalid. This can be backported.
This commit is contained in:
parent
78b849b839
commit
3de99a0919
@ -14353,8 +14353,8 @@ tcp-request content <action> [{if | unless} <condition>]
|
|||||||
# and reject everything else. (works for HTTP/1 and HTTP/2 connections)
|
# and reject everything else. (works for HTTP/1 and HTTP/2 connections)
|
||||||
acl is_host_com hdr(Host) -i example.com
|
acl is_host_com hdr(Host) -i example.com
|
||||||
tcp-request inspect-delay 5s
|
tcp-request inspect-delay 5s
|
||||||
tcp-request switch-mode http if HTTP
|
tcp-request content switch-mode http if HTTP
|
||||||
tcp-request reject # non-HTTP traffic is implicit here
|
tcp-request content reject # non-HTTP traffic is implicit here
|
||||||
...
|
...
|
||||||
http-request reject unless is_host_com
|
http-request reject unless is_host_com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user