From 29452647d803aa1259b4430b52349ce7ac1495a4 Mon Sep 17 00:00:00 2001 From: WeidiDeng Date: Sat, 20 May 2023 00:00:00 +0800 Subject: caddyhttp: Fix h3 shutdown (#5541) * swap h3server close and listener close, avoid quic-listener not closing * fix typo --- modules/caddyhttp/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/server.go') diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index d2de09b55..db370db67 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -555,7 +555,7 @@ func (s *Server) serveHTTP3(addr caddy.NetworkAddress, tlsCfg *tls.Config) error } } - s.h3listeners = append(s.h3listeners, lnAny.(net.PacketConn)) + s.h3listeners = append(s.h3listeners, ln) //nolint:errcheck go s.h3server.ServeListener(h3ln) -- cgit v1.2.3