Skip to content

Commit

Permalink
caddyhttp: Enable 0-RTT QUIC (#5425)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored Mar 9, 2023
1 parent b3f0cea commit c05e389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c05e389

Please sign in to comment.