From bd0d64ea7a799058b5f3fbba38eefddfdb740c42 Mon Sep 17 00:00:00 2001 From: Lior Okman Date: Sat, 23 Dec 2023 15:24:56 +0200 Subject: [PATCH] Set ALPN protocols in QUIC in the same way as in HTTPS Signed-off-by: Lior Okman --- internal/xds/translator/listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/xds/translator/listener.go b/internal/xds/translator/listener.go index 6851eba2cd72..449e60fa7227 100644 --- a/internal/xds/translator/listener.go +++ b/internal/xds/translator/listener.go @@ -346,7 +346,7 @@ func buildDownstreamQUICTransportSocket(tlsConfig *ir.TLSListenerConfig) (*corev DownstreamTlsContext: &tlsv3.DownstreamTlsContext{ CommonTlsContext: &tlsv3.CommonTlsContext{ TlsParams: buildTLSParams(tlsConfig), - AlpnProtocols: []string{"h3"}, + AlpnProtocols: buildALPNProtocols(tlsConfig.ALPNProtocols), }, RequireClientCertificate: &wrappers.BoolValue{Value: false}, },