diff options
author | WeidiDeng <[email protected]> | 2023-05-20 00:00:00 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-19 10:00:00 -0600 |
commit | 29452647d803aa1259b4430b52349ce7ac1495a4 (patch) | |
tree | 240dbd873c657d1abbd4e3a4b0b9438df4eafc91 /modules/caddyhttp/server.go | |
parent | bd34cb6b4e171567243ff541ca303ac32fec91d8 (diff) | |
download | caddy-29452647d803aa1259b4430b52349ce7ac1495a4.tar.gz caddy-29452647d803aa1259b4430b52349ce7ac1495a4.zip |
caddyhttp: Fix h3 shutdown (#5541)
* swap h3server close and listener close, avoid quic-listener not closing
* fix typo
Diffstat (limited to 'modules/caddyhttp/server.go')
-rw-r--r-- | modules/caddyhttp/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |