]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proto_reverse_connect: support SNI on active connect
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 3 Nov 2023 10:03:49 +0000 (11:03 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 3 Nov 2023 10:11:44 +0000 (11:11 +0100)
commitd82a6d93e2a00088c7e6c1200adce6fad7677854
tree2930372e164c57fa22396841576dab133312c8f5
parent7a1ec235cd69628a6bcece061e85fe3bfc9d488a
BUG/MINOR: proto_reverse_connect: support SNI on active connect

SNI may be specify on a server line for connecting to the remote host.
This requires to manually set it on the connection via
ssl_sock_set_servername().

This step was missing when a server line was used for active reverse
HTTP. Fix this by adding the missing ssl_sock_set_servername()
invocation inside new_reverse_conn().

Note that for the moment, no session is instantiated to carry active
reverse connection. A direct consequence of this is that SNI sample
retrieval may crash depending if it depends on session parameters. This
should be fixed by a later commit. In the meantime, this patch is
sufficient to support simple SNI value such as constant expressions.

No need to backport.
src/proto_reverse_connect.c