Merge pull request #5 from milimoe/master

Server_Port应该是int类型
This commit is contained in:
milimoe 2023-04-01 21:19:27 +08:00 committed by GitHub
commit 6039b89241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,15 +2,15 @@
{
public class ConnectEventArgs : GeneralEventArgs
{
public string ServerIP { get; set; } = "";
public string ServerPort { get; set; } = "";
public string ServerIP { get; set; } = "127.0.0.1";
public int ServerPort { get; set; } = 22222;
public ConnectEventArgs(params object[]? objs)
{
if (objs != null)
{
if (objs.Length > 0) ServerIP = (string)objs[0];
if (objs.Length > 1) ServerPort = (string)objs[1];
if (objs.Length > 1) ServerPort = (int)objs[1];
}
}
}