MINOR: muxes: Support an optional ALPN string when defining mux protocols

When a multiplexer protocol is defined, it is now possible to specify the
ALPN it supports, in binary format. This info is optionnal. For now only the
h2 and the h1 multiplexers define an ALPN because this will be mandatory for
a fix. But this could be used in future for different purpose.

This patch will be mandatory for the next fix.
This commit is contained in:
Christopher Faulet
2025-11-20 15:32:46 +01:00
parent e9d34f991e
commit 8e08a635eb
3 changed files with 3 additions and 2 deletions

View File

@@ -670,6 +670,7 @@ struct mux_proto_list {
enum proto_proxy_mode mode;
enum proto_proxy_side side;
const struct mux_ops *mux;
const char *alpn; /* Default alpn to set by default when the mux protocol is forced (optional, in binary form) */
struct list list;
};