Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 14:15 UTC
caddyhttp: Disable draft versions of QUIC
See comment in #4996
Matthew Holt committed
Aug 31, 2022 at 18:49 UTC
cb849bd6648294feb42eac1081aece589f20eaf6
1 file changed
+5
modules/caddyhttp/server.go
+5
@@ -33,6 +33,7 @@ import (
33
"github.com/caddyserver/caddy/v2/modules/caddyevents"
34
"github.com/caddyserver/caddy/v2/modules/caddytls"
35
"github.com/caddyserver/certmagic"
36
+ "github.com/lucas-clemente/quic-go"
37
"github.com/lucas-clemente/quic-go/http3"
38
"go.uber.org/zap"
39
"go.uber.org/zap/zapcore"
@@ -486,6 +487,10 @@ func (s *Server) serveHTTP3(hostport string, tlsCfg *tls.Config) error {
487
Handler: s,
488
TLSConfig: tlsCfg,
489
MaxHeaderBytes: s.MaxHeaderBytes,
490
+ // TODO: remove this config when draft versions are no longer supported (we have no need to support drafts)
491
+ QuicConfig: &quic.Config{
492
+ Versions: []quic.VersionNumber{quic.Version1, quic.Version2},
493
+ },
494
}
495
}
496