]> git.proxmox.com Git - pve-firewall.git/commitdiff
use integer compare for $ipversion
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 31 Oct 2014 11:08:10 +0000 (12:08 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 31 Oct 2014 11:08:10 +0000 (12:08 +0100)
src/PVE/Firewall.pm

index 3123550fb24805e6ee96c4a8613674dc24bc2e6d..c3cd90e02bbc5b69ee07bb2631462eecaf3aa80d 100644 (file)
@@ -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
     }