From 6bfe88107cd85d43ec02668ad8de92b3946e8f2e Mon Sep 17 00:00:00 2001 From: lhiven Date: Thu, 5 Jun 2025 18:42:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=AA=E5=85=81=E8=AE=B819?= =?UTF-8?q?2=E5=92=8C127=E5=BC=80=E5=A4=B4=E7=9A=84IP=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E8=BD=AF=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.DeweyTester/Entitys/TestFixtureManager.cs | 10 ++++++++++ Rs.DeweyTester/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Rs.DeweyTester/Entitys/TestFixtureManager.cs b/Rs.DeweyTester/Entitys/TestFixtureManager.cs index 268e9af..1af82f1 100644 --- a/Rs.DeweyTester/Entitys/TestFixtureManager.cs +++ b/Rs.DeweyTester/Entitys/TestFixtureManager.cs @@ -979,6 +979,16 @@ namespace Rs.MotionPlat.Entitys { if(endPoint.Address.ToString()!="127.0.0.1") { + MessageQueue.Instance.Insert($"ip:{endPoint.Address.ToString()},port:{endPoint.Port.ToString()} illegal ip force closed!"); + clientSocket.Close(); + continue; + } + } + else + { + if (endPoint.Address.ToString().IndexOf("192")<0 && endPoint.Address.ToString().IndexOf("169")<0) + { + MessageQueue.Instance.Insert($"ip:{endPoint.Address.ToString()},port:{endPoint.Port.ToString()} illegal ip force closed!"); clientSocket.Close(); continue; } diff --git a/Rs.DeweyTester/Properties/AssemblyInfo.cs b/Rs.DeweyTester/Properties/AssemblyInfo.cs index b4ced93..86be4aa 100644 --- a/Rs.DeweyTester/Properties/AssemblyInfo.cs +++ b/Rs.DeweyTester/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ using System.Runtime.InteropServices; // //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: - [assembly: AssemblyVersion("20.25.37.2")] + [assembly: AssemblyVersion("20.25.38.1")] //[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")]