mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
MINOR: quic-be: Set the backend alpn if not set by conf
Simply set the alpn string to "h3,hq_interop" if there is no "alpn" setting for QUIC backends.
This commit is contained in:
parent
a9b5a2eb90
commit
93a94ba87b
@ -43,6 +43,7 @@
|
||||
#include <haproxy/sc_strm.h>
|
||||
#include <haproxy/server.h>
|
||||
#include <haproxy/stats.h>
|
||||
#include <haproxy/ssl_sock.h>
|
||||
#include <haproxy/stconn.h>
|
||||
#include <haproxy/stream.h>
|
||||
#include <haproxy/stress.h>
|
||||
@ -3854,6 +3855,12 @@ static int _srv_parse_finalize(char **args, int cur_arg,
|
||||
ha_alert("QUIC protocol detected without explicit SSL requirement. Use 'ssl' to fix this.\n");
|
||||
return ERR_ALERT | ERR_FATAL;
|
||||
}
|
||||
|
||||
if (!srv->ssl_ctx.alpn_str &&
|
||||
ssl_sock_parse_alpn("h3", &srv->ssl_ctx.alpn_str,
|
||||
&srv->ssl_ctx.alpn_len, &errmsg) != 0) {
|
||||
return ERR_ALERT | ERR_FATAL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user