1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

modify iw6x parser to default game log vars temporarily, small amount of code cleanup to git rid of warnings

This commit is contained in:
RaidMax
2020-11-12 20:39:56 -06:00
parent f5c2f92652
commit 057de452e7
7 changed files with 37 additions and 8 deletions

View File

@ -128,7 +128,17 @@ namespace IW4MAdmin.Application.RCon
byte[][] response = null;
retrySend:
retrySend:
if (connectionState.ConnectionAttempts > 1)
{
using (LogContext.PushProperty("Server", Endpoint.ToString()))
{
_log.LogInformation(
"Retrying RCon message ({connectionAttempts}/{allowedConnectionFailures} attempts) with parameters {payload}",
connectionState.ConnectionAttempts,
StaticHelpers.AllowedConnectionFails, parameters);
}
}
using (var socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)
{
DontFragment = true,