assume rule is enabled if {enable} is not defined
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 21 Mar 2014 06:32:09 +0000 (07:32 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 21 Mar 2014 06:32:09 +0000 (07:32 +0100)
src/PVE/Firewall.pm

index efeedf2..160e32b 100644 (file)
@@ -765,7 +765,7 @@ sub iptables_rule_exist {
 sub ruleset_generate_cmdstr {
     my ($ruleset, $chain, $rule, $actions, $goto) = @_;
 
-    return if !$rule->{enable};
+    return if defined($rule->{enable}) && !$rule->{enable};
 
     my @cmd = ();