From: Alen Grizonic Date: Tue, 4 Aug 2015 08:55:24 +0000 (+0200) Subject: firewall ipversion comparison fix X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=ff5d050e12644e08eafdcd3b476fee7a9f38beaf;hp=5dc356afae7774e53e2a8389b09f2916d1362c9b firewall ipversion comparison fix Signed-off-by: Alen Grizonic --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 1286238..83915df 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -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 = [];