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, 05:30 UTC
caddyhttp: Enable 0-RTT QUIC (#5425)
Marten Seemann committed
Mar 9, 2023 at 07:58 UTC
c05e3898b924c3434ee17e9e50cde2bc498e9f88
1 file changed
+1
listeners.go
+1
@@ -441,6 +441,7 @@ func ListenQUIC(ln net.PacketConn, tlsConf *tls.Config, activeRequests *int64) (
441
442
sharedEarlyListener, _, err := listenerPool.LoadOrNew(lnKey, func() (Destructor, error) {
443
earlyLn, err := quic.ListenEarly(ln, http3.ConfigureTLSConfig(tlsConf), &quic.Config{
444
+ Allow0RTT: func(net.Addr) bool { return true },
445
RequireAddressValidation: func(clientAddr net.Addr) bool {
446
var highLoad bool
447
if activeRequests != nil {