mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-13 00:28:10 -05:00
update references from IP to ListenAddress
This commit is contained in:
@ -28,7 +28,7 @@ namespace WebfrontCore.Controllers
|
||||
: _appConfig.CommunityInformation.Name;
|
||||
|
||||
var activeServers = _appConfig.Servers.Where(server =>
|
||||
Manager.GetServers().FirstOrDefault(s => s.IP == server.IPAddress && s.Port == server.Port) != null);
|
||||
Manager.GetServers().FirstOrDefault(s => s.ListenAddress == server.IPAddress && s.ListenPort == server.Port) != null);
|
||||
|
||||
var info = new CommunityInfo
|
||||
{
|
||||
@ -36,9 +36,9 @@ namespace WebfrontCore.Controllers
|
||||
ServerRules = activeServers.ToDictionary(
|
||||
config =>
|
||||
{
|
||||
var server = Manager.GetServers().FirstOrDefault(server =>
|
||||
server.IP == config.IPAddress && server.Port == config.Port);
|
||||
return (server.Hostname, server.EndPoint);
|
||||
var server = Manager.GetServers().First(server =>
|
||||
server.ListenAddress == config.IPAddress && server.ListenPort == config.Port);
|
||||
return (server.ServerName, server.EndPoint);
|
||||
},
|
||||
config => config.Rules),
|
||||
CommunityInformation = _appConfig.CommunityInformation
|
||||
|
Reference in New Issue
Block a user