Skip to content

Commit 5787603

Browse files
committed
Remove unused var
1 parent c638ad4 commit 5787603

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Core/IPBanConfig.cs

-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public class IPBanConfig
6565
private readonly HashSet<string> whiteList = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
6666
private readonly bool clearBannedIPAddressesOnRestart;
6767
private readonly HashSet<string> userNameWhitelist = new HashSet<string>(StringComparer.Ordinal);
68-
private readonly bool createWhitelistFirewallRule;
6968
private readonly int userNameWhitelistMaximumEditDistance = 2;
7069
private readonly int failedLoginAttemptsBeforeBanUserNameWhitelist = 20;
7170
private readonly Dictionary<string, string> osAndFirewallType = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
@@ -97,7 +96,6 @@ private IPBanConfig(string xml, IDnsLookup dns)
9796
GetConfig<TimeSpan>("CycleTime", ref cycleTime);
9897
GetConfig<TimeSpan>("MinimumTimeBetweenFailedLoginAttempts", ref minimumTimeBetweenFailedLoginAttempts);
9998
GetConfig<string>("FirewallRulePrefix", ref firewallRulePrefix);
100-
GetConfig<bool>("CreateWhitelistFirewallRule", ref createWhitelistFirewallRule);
10199

102100
string whiteListString = GetConfig<string>("Whitelist", string.Empty);
103101
string whiteListRegexString = GetConfig<string>("WhitelistRegex", string.Empty);

0 commit comments

Comments
 (0)