MINOR: tcp-act: define optional arg name for attach-srv
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 31 Jul 2023 14:21:00 +0000 (16:21 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 13:28:38 +0000 (15:28 +0200)
commit0b3758e18f95732184f7c4a0ef4998c6b71cf52f
treed78e95fa66658a83b4d36154ddd72c5d0032b33c
parentf0bff29473023e16110cc9c3d134baa21c4688bc
MINOR: tcp-act: define optional arg name for attach-srv

Add an optional argument 'name' for attach-srv rule. This contains an
expression which will be used as an identifier inside the server idle
pool after reversal. To match this connection for a future transfer
through the server, the SNI server parameter must match this name. If no
name is defined, match will only occur with an empty SNI value.

For the moment, only the parsing step is implemented. An extra check is
added to ensure that the reverse server uses SSL with a SNI. Indeed, if
name is defined but server does not uses a SNI, connections will never
be selected on reused after reversal due to a hash mismatch.
doc/configuration.txt
include/haproxy/action-t.h
src/tcp_act.c