MINOR: tcp-act: Add set-src/set-src-port for "tcp-request content" rules
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Jun 2021 10:07:21 +0000 (12:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 23 Jun 2021 10:07:24 +0000 (12:07 +0200)
commit19bbbe05629ea947dd60d5b96d96f0066b047b97
tree17e381a635a9b7f3cf850a04b6d2288f1e1bc20e
parent5ffb045ed12f14a0367bcb0aa39931806c84357a
MINOR: tcp-act: Add set-src/set-src-port for "tcp-request content" rules

If it possible to set source IP/Port from "tcp-request connection",
"tcp-request session" and "http-request" rules but not from "tcp-request
content" rules. There is no reason for this limitation and it may be a
problem for anyone wanting to call a lua fetch to dynamically set source
IP/Port from a TCP proxy. Indeed, to call a lua fetch, we must have a
stream. And there is no stream when "tcp-request connection/session" rules
are evaluated.

Thanks to this patch, "set-src" and "set-src-port" action are now supported
by "tcp_request content" rules.

This patch is related to the issue #1303. It may be backported to all stable
versions.
doc/configuration.txt
src/tcp_act.c