Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxtra committed Oct 12, 2020
1 parent fbde71e commit 067dbd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPBanCore/Linux/IPBanLinuxBaseFirewall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ protected bool CreateOrUpdateRule(string ruleName, string action, string hashTyp
int ruleNum = int.Parse(line.Substring(0, index));

// replace the rule with the new info
RunProcess(IpTablesProcess, true, $"-R INPUT {ruleNum} -m --state NEW -m set{portString}--match-set \"{ruleName}\" src -j {action}");
RunProcess(IpTablesProcess, true, $"-R INPUT {ruleNum} -m state --state NEW -m set{portString}--match-set \"{ruleName}\" src -j {action}");
replaced = true;
break;
}
Expand All @@ -226,7 +226,7 @@ protected bool CreateOrUpdateRule(string ruleName, string action, string hashTyp
{
// add a new rule, for block add to end of list (lower priority) for allow add to begin of list (higher priority)
string addCommand = (block ? "-A" : "-I");
RunProcess(IpTablesProcess, true, $"{addCommand} INPUT -m --state NEW -m set{portString}--match-set \"{ruleName}\" src -j {action}");
RunProcess(IpTablesProcess, true, $"{addCommand} INPUT -m state --state NEW -m set{portString}--match-set \"{ruleName}\" src -j {action}");
}

if (cancelToken.IsCancellationRequested)
Expand Down

0 comments on commit 067dbd6

Please sign in to comment.