add back missing "Port" field for Server

This commit is contained in:
RaidMax 2023-04-05 22:26:04 -05:00
parent e558d912cf
commit ffb32ccc45

View File

@ -64,7 +64,7 @@ namespace SharedLibraryCore
{ {
Password = config.Password; Password = config.Password;
IP = config.IPAddress; IP = config.IPAddress;
ListenPort = config.Port; Port = config.Port;
Manager = mgr; Manager = mgr;
#pragma warning disable CS0612 #pragma warning disable CS0612
Logger = deprecatedLogger ?? throw new ArgumentNullException(nameof(deprecatedLogger)); Logger = deprecatedLogger ?? throw new ArgumentNullException(nameof(deprecatedLogger));
@ -159,8 +159,8 @@ namespace SharedLibraryCore
public IPEndPoint ResolvedIpEndPoint { get; protected set; } public IPEndPoint ResolvedIpEndPoint { get; protected set; }
public string Version { get; protected set; } public string Version { get; protected set; }
public bool IsInitialized { get; set; } public bool IsInitialized { get; set; }
public int Port { get; protected set; }
public int ListenPort { get; } public int ListenPort => Port;
public abstract Task Kick(string reason, EFClient target, EFClient origin, EFPenalty originalPenalty); public abstract Task Kick(string reason, EFClient target, EFClient origin, EFPenalty originalPenalty);
/// <summary> /// <summary>