删除ip和port的二次验证

This commit is contained in:
milimoe 2023-09-09 16:09:20 +08:00
parent 67ce75c5be
commit ec5e34a356
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -78,11 +78,7 @@ namespace Milimoe.FunGame.Core.Controller
// 检查服务器IP地址和端口是否正确
if (ip == "" || port <= 0)
{
(ip, port) = GetServerAddress();
if (ip == "" || port <= 0)
{
result = ConnectResult.FindServerFailed;
}
result = ConnectResult.FindServerFailed;
}
if (result == ConnectResult.Success)
{