]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/INotify.pm
fix 3108: properly check IPv6 addr
[pve-common.git] / src / PVE / INotify.pm
index cf6ef57ab6608baf4506a571143e2fa774203c13..bd2b15a5328e82495dce6e2311ff0e5f8be8ca05 100644 (file)
@@ -1619,7 +1619,7 @@ sub __write_etc_network_interfaces {
                die "bridge '$iface' - unable to find bridge port '$p'\n" if !$n;
                die "iface $p - ip address can't be set on interface if bridged in $iface\n"
                    if ($n->{method} && $n->{method} eq 'static' && $n->{address} ne '0.0.0.0') ||
-                      ($n->{method6} && $n->{method6} eq 'static' && $n->{address} ne '::');
+                      ($n->{method6} && $n->{method6} eq 'static' && $n->{address6} ne '::');
                &$check_mtu($ifaces_copy, $p, $iface);
                $bridgeports->{$p} = $iface;
            }