chore: sync vless encryption code

This commit is contained in:
wwqgtxx
2025-09-04 21:57:52 +08:00
parent 65d3920f02
commit 8eba1c8afd
5 changed files with 40 additions and 53 deletions

View File

@@ -100,7 +100,7 @@ func New(config LC.VlessServer, tunnel C.Tunnel, additions ...inbound.Addition)
if sl.decryption != nil {
defer func() { // decryption must be closed to avoid the goroutine leak
if err != nil {
_ = sl.decryption.Close()
//_ = sl.decryption.Close()
sl.decryption = nil
}
}()
@@ -210,7 +210,7 @@ func (l *Listener) Close() error {
}
}
if l.decryption != nil {
_ = l.decryption.Close()
//_ = l.decryption.Close()
}
return retErr
}