Skip to content

Commit

Permalink
Fix IP parsing bug introduced with IW4Parser
Browse files Browse the repository at this point in the history
Additional fix for Webfront Index OoB on _ClientActivity
  • Loading branch information
RaidMax committed Jan 29, 2019
1 parent a16df61 commit 271769c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RuntimeFrameworkVersion>2.1.5</RuntimeFrameworkVersion>
<MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish>
<PackageId>RaidMax.IW4MAdmin.Application</PackageId>
<Version>2.2.4.0</Version>
<Version>2.2.4.1</Version>
<Authors>RaidMax</Authors>
<Company>Forever None</Company>
<Product>IW4MAdmin</Product>
Expand All @@ -31,8 +31,8 @@
<PropertyGroup>
<ServerGarbageCollection>true</ServerGarbageCollection>
<TieredCompilation>true</TieredCompilation>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<FileVersion>2.2.4.0</FileVersion>
<AssemblyVersion>2.2.4.1</AssemblyVersion>
<FileVersion>2.2.4.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Application/RconParsers/IW4RConParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public IW4RConParser()
Configuration.Status.GroupMapping.Add(ParserRegex.GroupType.RConPing, 3);
Configuration.Status.GroupMapping.Add(ParserRegex.GroupType.RConNetworkId, 4);
Configuration.Status.GroupMapping.Add(ParserRegex.GroupType.RConName, 5);
Configuration.Status.GroupMapping.Add(ParserRegex.GroupType.RConIpAddress, 6);
Configuration.Status.GroupMapping.Add(ParserRegex.GroupType.RConIpAddress, 7);
}

public IRConParserConfiguration Configuration { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion SharedLibraryCore/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public static bool IsPrivileged(this EFClient p)
/// <returns></returns>
public static bool PromptBool(string question, string description = null, bool defaultValue = true)
{
Console.Write($"{question}?{(string.IsNullOrEmpty(description) ? "" : $" ({description}) ")}[y/n]: ");
Console.Write($"{question}?{(string.IsNullOrEmpty(description) ? " " : $" ({description}) ")}[y/n]: ");
char response = Console.ReadLine().ToLower().FirstOrDefault();
return response != 0 ? response == 'y' : defaultValue;
}
Expand Down
2 changes: 1 addition & 1 deletion WebfrontCore/ViewComponents/ServerListViewComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public IViewComponentResult Invoke()
Level = p.Level.ToLocalizedLevelName(),
LevelInt = (int)p.Level
}).ToList(),
ChatHistory = s.ChatHistory,
ChatHistory = s.ChatHistory.ToList(),
Online = !s.Throttled
}).ToList();
return View("_List", serverInfo);
Expand Down

0 comments on commit 271769c

Please sign in to comment.