chore: sync vless encryption code

This commit is contained in:
wwqgtxx
2025-09-04 22:06:47 +08:00
parent 8eba1c8afd
commit f8ee5c1e15
4 changed files with 65 additions and 26 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
}