]> git.proxmox.com Git - pve-firewall.git/commitdiff
firewall ipversion comparison fix
authorAlen Grizonic <a.grizonic@proxmox.com>
Tue, 4 Aug 2015 08:55:24 +0000 (10:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Aug 2015 09:14:13 +0000 (11:14 +0200)
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
src/PVE/Firewall.pm

index 128623889b72714fa7965c4e506f53c76fd71d31..83915df8728720eb9ce3177461699510a29efb71 100644 (file)
@@ -1197,7 +1197,9 @@ my $apply_macro = sub {
     }
 
     # skip macros which are specific to another ipversion
-    return if ($ipversion//0) != ($pve_fw_macro_ipversion->{$macro_name}//0);
+    if ($ipversion && (my $required = $pve_fw_macro_ipversion->{$macro_name})) {
+       return if $ipversion != $required;
+    }
 
     my $rules = [];