|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|