From: Dietmar Maurer Date: Fri, 31 Oct 2014 11:08:10 +0000 (+0100) Subject: use integer compare for $ipversion X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=b546f5007c77176cf3e0b3cb1f6856e9160a02ce use integer compare for $ipversion --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 3123550..c3cd90e 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -2925,7 +2925,8 @@ sub compile_iptables_filter { my $ipset_ruleset = {}; - if ($hostfw_enable && $ipversion eq 4) { + # currently pveproxy don't works with ipv6, so let's generate host fw ipv4 only for the moment + if ($hostfw_enable && ($ipversion == 4)) { eval { enable_host_firewall($ruleset, $hostfw_conf, $cluster_conf); }; warn $@ if $@; # just to be sure - should not happen }