diff options
author | Marten Seemann <[email protected]> | 2023-05-30 12:41:57 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-30 05:41:57 -0400 |
commit | 467b7e3a9cba9570cc62934316dbd251860fed3f (patch) | |
tree | 3ee1779b713d460c97224b2064e341f9ec8f5563 /listeners.go | |
parent | 31d75acc9ca5529c300be1ff46ae2dd799fbf9d8 (diff) | |
download | caddy-467b7e3a9cba9570cc62934316dbd251860fed3f.tar.gz caddy-467b7e3a9cba9570cc62934316dbd251860fed3f.zip |
update quic-go to v0.35.0 (#5560)
Diffstat (limited to 'listeners.go')
-rw-r--r-- | listeners.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/listeners.go b/listeners.go index 4c851bd1e..672bd833d 100644 --- a/listeners.go +++ b/listeners.go @@ -445,7 +445,7 @@ func ListenPacket(network, addr string) (net.PacketConn, error) { // NOTE: This API is EXPERIMENTAL and may be changed or removed. // // TODO: See if we can find a more elegant solution closer to the new NetworkAddress.Listen API. -func ListenQUIC(ln net.PacketConn, tlsConf *tls.Config, activeRequests *int64) (quic.EarlyListener, error) { +func ListenQUIC(ln net.PacketConn, tlsConf *tls.Config, activeRequests *int64) (http3.QUICEarlyListener, error) { lnKey := listenerKey("quic+"+ln.LocalAddr().Network(), ln.LocalAddr().String()) sharedEarlyListener, _, err := listenerPool.LoadOrNew(lnKey, func() (Destructor, error) { @@ -454,7 +454,7 @@ func ListenQUIC(ln net.PacketConn, tlsConf *tls.Config, activeRequests *int64) ( //nolint:gosec quicTlsConfig := &tls.Config{GetConfigForClient: sqtc.getConfigForClient} earlyLn, err := quic.ListenEarly(ln, http3.ConfigureTLSConfig(quicTlsConfig), &quic.Config{ - Allow0RTT: func(net.Addr) bool { return true }, + Allow0RTT: true, RequireAddressValidation: func(clientAddr net.Addr) bool { var highLoad bool if activeRequests != nil { @@ -569,7 +569,7 @@ func (sqtc *sharedQUICTLSConfig) addTLSConfig(tlsConfig *tls.Config) (context.Co // sharedQuicListener is like sharedListener, but for quic.EarlyListeners. type sharedQuicListener struct { - quic.EarlyListener + *quic.EarlyListener sqtc *sharedQUICTLSConfig key string } |