mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
fix: 修复连接错误 (#6607)
This commit is contained in:
@@ -1280,7 +1280,10 @@ namespace MaaWpfGui.Main
|
||||
}
|
||||
|
||||
string host = addresses[0].Equals("emulator") ? "127.0.0.1" : addresses[0];
|
||||
int port = int.Parse(addresses[1]);
|
||||
if (!int.TryParse(addresses[1], out int port))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
using var client = new TcpClient();
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user