use $rule->{dest} instead of $rule->{destination}
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 20 Feb 2014 10:06:55 +0000 (11:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 20 Feb 2014 10:06:55 +0000 (11:06 +0100)
PVE/Firewall.pm

index 1a38e00..1b52ca3 100644 (file)
@@ -261,7 +261,7 @@ sub ruleset_generate_rule {
     $cmd .= " -m iprange --src-range" if $rule->{nbsource} && $rule->{nbsource} > 1;
     $cmd .= " -s $rule->{source}" if $rule->{source};
     $cmd .= " -m iprange --dst-range" if $rule->{nbdest} && $rule->{nbdest} > 1;
-    $cmd .= " -d $rule->{dest}" if $rule->{destination};
+    $cmd .= " -d $rule->{dest}" if $rule->{dest};
     $cmd .= " -p $rule->{proto}" if $rule->{proto};
     $cmd .= "  --match multiport" if $rule->{nbdport} && $rule->{nbdport} > 1;
     $cmd .= " --dport $rule->{dport}" if $rule->{dport};