]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: server: duplicate server alt_proto in srv_settings_cpy()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 08:40:18 +0000 (10:40 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 29 Jul 2026 13:21:35 +0000 (15:21 +0200)
commit4e8cf9128a3dc07988f049f977739f08f2dc33bd
tree2c7ec6c7654af462c0c82488c2b37a3d90758b44
parent6b96eb7b023d0c31d073402d5e3fb23e4238db97
BUG/MINOR: server: duplicate server alt_proto in srv_settings_cpy()

Server <alt_proto> may be set to select an alternative protocol to the
default one depending on the server address type. Currently, the main
usage is for MPTCP on the backend side.

This field was not duplicated in srv_settings_cpy(). This has no impact
with default-server as such entry do not have any address configured.
However, this causes an issue with server-template, as duplicated
entries will remain with an unset <alt_proto> field. This results in an
incorrect TCP protocol selected on connect instead of MPTCP.

Fix this by ensuring that <alt_proto> is copied in srv_settings_cpy().
This is only performed for server-templates, as with other settings
relative to the server address.

This must be backported up to 3.2.
src/server.c