diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-08-31 18:49:34 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-08-31 18:49:34 -0600 |
commit | cb849bd6648294feb42eac1081aece589f20eaf6 (patch) | |
tree | 021acfaa89078e631982a21cdcb6d15199838812 | |
parent | 3cd7437b3d2aa7e72129f18991a4eb71214febb6 (diff) |
caddyhttp: Disable draft versions of QUIC
See comment in #4996
-rw-r--r-- | modules/caddyhttp/server.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index eec4d1b..dcf9af1 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -33,6 +33,7 @@ import ( "github.com/caddyserver/caddy/v2/modules/caddyevents" "github.com/caddyserver/caddy/v2/modules/caddytls" "github.com/caddyserver/certmagic" + "github.com/lucas-clemente/quic-go" "github.com/lucas-clemente/quic-go/http3" "go.uber.org/zap" "go.uber.org/zap/zapcore" @@ -486,6 +487,10 @@ func (s *Server) serveHTTP3(hostport string, tlsCfg *tls.Config) error { Handler: s, TLSConfig: tlsCfg, MaxHeaderBytes: s.MaxHeaderBytes, + // TODO: remove this config when draft versions are no longer supported (we have no need to support drafts) + QuicConfig: &quic.Config{ + Versions: []quic.VersionNumber{quic.Version1, quic.Version2}, + }, } } |