projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2069cc4
)
Always flush before applying rules
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 20 Sep 2010 20:56:13 +0000
(13:56 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 20 Sep 2010 20:56:13 +0000
(13:56 -0700)
ipfw/ipfw-lib.pl
patch
|
blob
|
history
diff --git
a/ipfw/ipfw-lib.pl
b/ipfw/ipfw-lib.pl
index
2b3ddd9
..
181549f
100755
(executable)
--- a/
ipfw/ipfw-lib.pl
+++ b/
ipfw/ipfw-lib.pl
@@
-480,9
+480,9
@@
$conf ||= &get_config();
local $dir = &get_current_dir();
chdir("/");
local $fmt = &get_ipfw_format();
+&system_logged("$config{'ipfw'} -f flush >/dev/null 2>&1");
if ($fmt == 0) {
# Apply each rule in turn
- &system_logged("$config{'ipfw'} -f flush >/dev/null 2>&1");
local $r;
foreach $r (@$conf) {
if (!$r->{'other'} &&