summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorMarten Seemann <[email protected]>2024-09-21 11:47:18 +0800
committerGitHub <[email protected]>2024-09-21 05:47:18 +0200
commitff67b971267abb24774d18f323b0d6d43bfcdb3b (patch)
treecf14e0c7b0fe86397e3ff33d5b879f0c6d30a74a /modules
parent5b44d6cea87e91723e166eb30041d0ec79c29e66 (diff)
downloadcaddy-ff67b971267abb24774d18f323b0d6d43bfcdb3b.tar.gz
caddy-ff67b971267abb24774d18f323b0d6d43bfcdb3b.zip
caddyhttp: enable qlog, controlled by QLOGDIR env (#6581)
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go
index e301bdc68..54b1c3b34 100644
--- a/modules/caddyhttp/server.go
+++ b/modules/caddyhttp/server.go
@@ -32,6 +32,7 @@ import (
"github.com/caddyserver/certmagic"
"github.com/quic-go/quic-go"
"github.com/quic-go/quic-go/http3"
+ "github.com/quic-go/quic-go/qlog"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
@@ -623,9 +624,9 @@ func (s *Server) serveHTTP3(addr caddy.NetworkAddress, tlsCfg *tls.Config) error
}),
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.Version{quic.Version1, quic.Version2},
+ Tracer: qlog.DefaultConnectionTracer,
},
IdleTimeout: time.Duration(s.IdleTimeout),
ConnContext: func(ctx context.Context, c quic.Connection) context.Context {