浏览代码

close inbound ray when there is an error

v2ray 9 年之前
父节点
当前提交
8daea1dc06
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      proxy/vmess/inbound/inbound.go

+ 1 - 0
proxy/vmess/inbound/inbound.go

@@ -120,6 +120,7 @@ func (this *VMessInboundHandler) HandleConnection(connection *net.TCPConn) error
 	aesStream, err := v2crypto.NewAesEncryptionStream(responseKey[:], responseIV[:])
 	if err != nil {
 		log.Error("VMessIn: Failed to create AES decryption stream: %v", err)
+		close(input)
 		return err
 	}