From d53e6af2c5f17838fa79659614b15a2a1f383399 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 31 三月 2023 10:04:58 +0800
Subject: [PATCH] 1

---
 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