mirror of https://github.com/caddyserver/caddy.git
caddyhttp: Enable 0-RTT QUIC (#5425)
This commit is contained in:
parent
b3f0cea2c3
commit
c05e3898b9
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue