]> git.kaiwu.me - haproxy.git/commit
REGTESTS: connection: test the expect-proxy action
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 03:45:05 +0000 (03:45 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commitd20bc62c0c83d7f461e8d098cace7a5819f532c6
treef931dc198a6b19d544b98d1e779e435b2faa660e
parentc5810cf23553d02f98551c2b1d85838747cad6f8
REGTESTS: connection: test the expect-proxy action

"tcp-request connection expect-proxy layer4" had no coverage. Unlike
the "accept-proxy" bind option, which makes the PROXY protocol header
mandatory for everybody, this action only expects it from the
connections matching its condition.

The test announces addresses which differ from the real ones so that
src and dst show which of the two was used, checks that fc_src keeps
reporting the real peer of the connection, that a connection from a
matching source is rejected when the header is missing or malformed,
and that a source which does not match the condition is served without
any header.
reg-tests/connection/expect_proxy.vtc [new file with mode: 0644]