mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-05 05:27:31 +00:00
chore: sync vless encryption code
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user