From 0fafbe4b132d03dc8f1f99de585bfcb5e63ab60a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 09 一月 2023 14:02:01 +0800 Subject: [PATCH] 多网关支持 --- Crabtree/SmartHome/HDL/Operation/BusSocket.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/BusSocket.cs b/Crabtree/SmartHome/HDL/Operation/BusSocket.cs index 7cc35a7..28b33c0 100644 --- a/Crabtree/SmartHome/HDL/Operation/BusSocket.cs +++ b/Crabtree/SmartHome/HDL/Operation/BusSocket.cs @@ -6,6 +6,7 @@ using System.Threading; using System.Net.Sockets; using System.Net; +using Shared.SimpleControl; namespace Shared { @@ -162,7 +163,7 @@ tempPacket.HaveSendCount++; byte [] messageSend; //2020-01-14 澧炲姞鏈湴閫氳鍔犲瘑 - if (UserConfig.Instance.IsLocalEncrypt) { + if (UserConfig.Instance.IsLocalEncrypt && CommonPage.needEncryptionDetection) { messageSend = Shared.Securitys.EncryptionService.AesEncryptPayload (tempPacket.Bytes, UserConfig.Instance.LocalEncryptKey); } else { messageSend = tempPacket.Bytes; -- Gitblit v1.8.0