mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-11 14:32:48 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user