Skip to content

Commit

Permalink
No need quote num
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxtra committed Oct 12, 2020
1 parent 4e9d3fa commit fbde71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 NEW -m set{portString}--match-set \"{ruleName}\" src -j {action}");
replaced = true;
break;
}
Expand Down

0 comments on commit fbde71e

Please sign in to comment.