1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

make connection attempts for CoD configurable as "ServerConnectionAttempts"

This commit is contained in:
RaidMax
2021-09-18 18:25:02 -05:00
parent 68d4cc5bfd
commit dfd5a3fae8
4 changed files with 13 additions and 10 deletions

View File

@ -150,6 +150,8 @@ namespace SharedLibraryCore.Configuration
[ConfigurationIgnore]
public TimeSpan ServerDataCollectionInterval { get; set; } = TimeSpan.FromMinutes(5);
public int ServerConnectionAttempts { get; set; } = 6;
[ConfigurationIgnore]
public Dictionary<Permission, string> OverridePermissionLevelNames { get; set; } = Enum

View File

@ -64,9 +64,5 @@ namespace SharedLibraryCore.RCon
/// interval in milliseconds to wait before sending the next RCon request
/// </summary>
public static readonly int FloodProtectionInterval = 750;
/// <summary>
/// how many failed connection attempts before aborting connection
/// </summary>
public static readonly int AllowedConnectionFails = 5;
}
}