From 10ce1ee5d46e6a590ca7b531c35640e53716b39a Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Tue, 5 Oct 2010 13:29:12 -0400 Subject: 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. --- firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3