mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-25 09:20:27 +00:00
vless: fix nil pointer panic on encryption handshake failure
This commit is contained in:
@@ -164,6 +164,13 @@ func (c *CommonConn) IsEncryptionLayer() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (c *CommonConn) Close() error {
|
||||
if c == nil || c.Conn == nil {
|
||||
return nil
|
||||
}
|
||||
return c.Conn.Close()
|
||||
}
|
||||
|
||||
type AEAD struct {
|
||||
cipher.AEAD
|
||||
Nonce [12]byte
|
||||
|
||||
Reference in New Issue
Block a user