From 4d9852314c5ee021e7eb04b595f7e1cfecd326cb Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Thu, 16 Dec 2021 23:36:29 +0200 Subject: [PATCH] [server] Enable QUIC draft-29. --- sources/cmd/server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/cmd/server/server.go b/sources/cmd/server/server.go index 5da2be0..f0f6ff7 100644 --- a/sources/cmd/server/server.go +++ b/sources/cmd/server/server.go @@ -715,7 +715,7 @@ func main_0 () (error) { // NOP } else if _host, _port, _error := net.SplitHostPort (_http3AltSvc); _error == nil { _endpoint := net.JoinHostPort (_host, _port) - _http3AltSvc = fmt.Sprintf ("h3=\"%s\"", _endpoint) + _http3AltSvc = fmt.Sprintf ("h3=\"%s\", h3-29=\"%s\"", _endpoint, _endpoint) } else { AbortError (nil, "[1a5476b1] HTTP/3 Alt-Svc is invalid!") } @@ -1455,6 +1455,7 @@ func main_0 () (error) { Versions : []quic.VersionNumber { quic.Version1, + quic.VersionDraft29, }, HandshakeIdleTimeout : 6 * time.Second,