diff --git a/src/mux_pt.c b/src/mux_pt.c index 603c3603e..64aae14ba 100644 --- a/src/mux_pt.c +++ b/src/mux_pt.c @@ -59,3 +59,13 @@ const struct mux_ops mux_pt_ops = { .wake = mux_pt_wake, .name = "PASS", }; + +/* ALPN selection : default mux has empty name */ +static struct alpn_mux_list alpn_mux_pt = + { .token = IST(""), .mode = ALPN_MODE_ANY, .mux = &mux_pt_ops }; + +__attribute__((constructor)) +static void __mux_pt_init(void) +{ + alpn_register_mux(&alpn_mux_pt); +}