MINOR: quic: enable SSL on QUIC servers automatically

Previously, QUIC servers were rejected if SSL was not explicitely
activated using 'ssl' configuration keyword.

Change this behavior : now SSL is automatically activated for QUIC
servers when the keyword is missing. A warning is displayed as it is
considered better to explicitely note that SSL is in use.
This commit is contained in:
Amaury Denoyelle 2025-10-31 09:58:57 +01:00
parent 0a14ad11be
commit 1af3caae7d

View File

@ -3931,8 +3931,8 @@ static int _srv_parse_finalize(char **args, int cur_arg,
#ifdef USE_QUIC
if (srv_is_quic(srv)) {
if (!srv->use_ssl) {
ha_alert("QUIC protocol detected without explicit SSL requirement. Use 'ssl' to fix this.\n");
return ERR_ALERT | ERR_FATAL;
srv->use_ssl = 1;
ha_warning("QUIC protocol detected, enabling ssl. Use 'ssl' to shut this warning.\n");
}
if (!srv->ssl_ctx.alpn_str &&