mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-03 20:49:02 +01:00
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.
This commit is contained in:
parent
a32305a275
commit
10ce1ee5d4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user