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 | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/BusSocket.cs b/Crabtree/SmartHome/HDL/Operation/BusSocket.cs index 5508ac5..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; @@ -170,8 +171,8 @@ busSocket.BeginSendTo(messageSend, 0, messageSend.Length, SocketFlags.None, tempPacket.RemoteEndPoint, new AsyncCallback(asyncEndSend), tempPacket); } - catch { - + catch(Exception e) { + Console.WriteLine (e.Message); } } -- Gitblit v1.8.0