]> git.proxmox.com Git - pve-common.git/commitdiff
fix 3108: properly check IPv6 addr
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 2 Nov 2020 07:33:51 +0000 (08:33 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 2 Nov 2020 07:33:51 +0000 (08:33 +0100)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
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;
            }