diff options
author | Marten Seemann <[email protected]> | 2023-03-09 07:58:31 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-03-09 08:58:31 -0700 |
commit | c05e3898b924c3434ee17e9e50cde2bc498e9f88 (patch) | |
tree | 99c945d47f14e545d6ea56b37464a39f23b9a485 /listeners.go | |
parent | b3f0cea2c31f6137cd1604ba31afffdbfc8b70ee (diff) | |
download | caddy-c05e3898b924c3434ee17e9e50cde2bc498e9f88.tar.gz caddy-c05e3898b924c3434ee17e9e50cde2bc498e9f88.zip |
caddyhttp: Enable 0-RTT QUIC (#5425)
Diffstat (limited to 'listeners.go')
-rw-r--r-- | listeners.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/listeners.go b/listeners.go index f9221444a..7c5401a65 100644 --- a/listeners.go +++ b/listeners.go @@ -441,6 +441,7 @@ func ListenQUIC(ln net.PacketConn, tlsConf *tls.Config, activeRequests *int64) ( sharedEarlyListener, _, err := listenerPool.LoadOrNew(lnKey, func() (Destructor, error) { earlyLn, err := quic.ListenEarly(ln, http3.ConfigureTLSConfig(tlsConf), &quic.Config{ + Allow0RTT: func(net.Addr) bool { return true }, RequireAddressValidation: func(clientAddr net.Addr) bool { var highLoad bool if activeRequests != nil { |