心跳加密

This commit is contained in:
cdyong 2015-12-23 00:45:25 +00:00
parent e10c095b3d
commit b3d4b2a26f
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ void ShowMessage(const TinyMessage& msg, bool send, ITransport* port)
static bool Encrypt(Message& msg, Array& pass)
{
// 加解密。组网不加密,退网不加密
if(msg.Length > 0 && pass.Length() > 0 && !(msg.Code == 0x01 || msg.Code == 0x02||msg.Code==0x03))
if(msg.Length > 0 && pass.Length() > 0 && !(msg.Code == 0x01 || msg.Code == 0x02))
{
Array bs(msg.Data, msg.Length);
RC4::Encrypt(bs, pass);