summaryrefslogtreecommitdiffhomepage
path: root/listeners.go
diff options
context:
space:
mode:
authorMarten Seemann <[email protected]>2023-03-09 07:58:31 -0800
committerGitHub <[email protected]>2023-03-09 08:58:31 -0700
commitc05e3898b924c3434ee17e9e50cde2bc498e9f88 (patch)
tree99c945d47f14e545d6ea56b37464a39f23b9a485 /listeners.go
parentb3f0cea2c31f6137cd1604ba31afffdbfc8b70ee (diff)
downloadcaddy-c05e3898b924c3434ee17e9e50cde2bc498e9f88.tar.gz
caddy-c05e3898b924c3434ee17e9e50cde2bc498e9f88.zip
caddyhttp: Enable 0-RTT QUIC (#5425)
Diffstat (limited to 'listeners.go')
-rw-r--r--listeners.go1
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 {