Fix close quic.Listener

This commit is contained in:
世界
2023-07-07 12:43:22 +08:00
parent af79378734
commit 230e8f895d
2 changed files with 2 additions and 2 deletions

View File

@@ -332,7 +332,7 @@ func (h *Hysteria) Close() error {
h.udpAccess.Unlock()
return common.Close(
&h.myInboundAdapter,
h.listener,
common.PtrOrNil(h.listener),
h.tlsConfig,
)
}