Browse Source

Update Tool

Zixuan 2 days ago
parent
commit
bf6ca9656e
1 changed files with 9 additions and 1 deletions
  1. 9 1
      Test/Program.cs

+ 9 - 1
Test/Program.cs

@@ -7,6 +7,7 @@ using ProtocalGeneral;
 using RTCommunicatorBase;
 using RTCommunicatorTLV;
 using SqlSugarORM;
+using System.Net;
 using Universal;
 using Universal.IO;
 
@@ -144,7 +145,14 @@ public class TestClass : IRTMini8Provider
     {
         communicator = new();
         communicator.Initialize(this);
-        communicator.StartService("127.0.0.1", 50052);
+        string ipaddress = string.Empty;
+        do
+        {
+            Console.WriteLine("Please Input IP Address");
+            ipaddress = Console.ReadLine();
+
+        } while (!communicator.StartService(ipaddress, 50052));
+
     }
 
     public void SetFile()