Add Close() for ServerInstance; Fix server's nonce overflow

https://github.com/XTLS/Xray-core/pull/4952#issuecomment-3180075690
5c61142048 (r163855798)
This commit is contained in:
RPRX
2025-08-12 17:07:57 +00:00
committed by GitHub
parent 5c61142048
commit 23d7aad461
2 changed files with 17 additions and 2 deletions

View File

@@ -170,6 +170,9 @@ func isMuxAndNotXUDP(request *protocol.RequestHeader, first *buf.Buffer) bool {
// Close implements common.Closable.Close().
func (h *Handler) Close() error {
if h.decryption != nil {
h.decryption.Close()
}
return errors.Combine(common.Close(h.validator))
}