]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: set auto SNI for dynamic servers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Feb 2026 15:31:25 +0000 (16:31 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 20 Feb 2026 08:02:47 +0000 (09:02 +0100)
commitde5fc2f515be1bb0d5b3d1b5961ed0744c2c9d9a
tree6852821b43fbfca8dcb9e1def7795d6ed3d8a80e
parent2b0fc331149f6806fb99f37affa38385556f5adb
BUG/MINOR: server: set auto SNI for dynamic servers

Auto SNI configuration is configured during check config validity.
However, nothing was implemented for dynamic servers.

Fix this by implementing auto SNI configuration during "add server" CLI
handler. Auto SNI configuration code is moved in a dedicated function
srv_configure_auto_sni() called both for static and dynamic servers.

Along with this, allows the keyword "no-sni-auto" on dynamic servers, so
that this process can be deactivated if wanted. Note that "sni-auto"
remains unavailable as it only makes sense with default-servers which
are never used for dynamic server creation.

This must be backported up to 3.3.
include/haproxy/server.h
src/cfgparse-ssl.c
src/proxy.c
src/server.c