X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FPVE%2FFirewall.pm;h=b08cea57312b9e6a54680e24abced4e4de4c47be;hp=abcc1e858ebb34d87f262e90a45f40d971c4f987;hb=0398480886f82189988edcd00fa20683cbbed4ce;hpb=8f3aa9cc800cf0c6375aaec81186493e1f1db2be diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index abcc1e8..b08cea5 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -3782,7 +3782,7 @@ sub compile_ebtables_filter { push(@$arpfilter, $ip); } } - if (my $ip = $net->{ip} && $vmfw_conf->{options}->{ipfilter}) { + if (defined(my $ip = $net->{ip}) && $vmfw_conf->{options}->{ipfilter}) { # ebtables changes this to a .0/MASK network but we just # want the address here, no network - see #2193 $ip =~ s|/(\d+)$||;