Skip to content

Commit

Permalink
simple rule removal method
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Jun 19, 2020
1 parent f7896dc commit 4662386
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IPTables.Net/Iptables/IpTablesChain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public void DeleteRule(int offset)
{
Rules.RemoveAt(offset);
}
public void DeleteRule(IpTablesRule rule)
{
Rules.Remove(rule);
}

public void InsertRule(int offset, IpTablesRule rule)
{
Expand Down

0 comments on commit 4662386

Please sign in to comment.