diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-10-05 13:29:12 -0400 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-10-05 13:29:12 -0400 |
commit | 10ce1ee5d46e6a590ca7b531c35640e53716b39a (patch) | |
tree | d395b9805698e7931b6b1f6f9ffc1dcc21e4782f | |
parent | a32305a275eea70a2df22992eb0f4e7483d8ca98 (diff) |
ipfw: use 'delete' instead of 'del' to avoid a warning on freebsd.
'del' is an abbreviation that happened to work because of substring matching
in earlier versions of ipfw, but apparently they're planning to remove the
substring matching eventually. In any case, 'delete' has always worked, so
there's no downside to using that.
Reported by Ed Maste.
-rw-r--r-- | firewall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firewall.py b/firewall.py index b93cf05..74f29ad 100644 --- a/firewall.py +++ b/firewall.py @@ -122,7 +122,7 @@ def do_ipfw(port, subnets): # cleanup any existing rules if ipfw_rule_exists(port): - ipfw('del', sport) + ipfw('delete', sport) while _oldctls: (name,oldval) = _oldctls.pop() |