mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 04:54:22 +00:00
fix 3108: properly check IPv6 addr
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
e65624a3fa
commit
eeafe02d81
@ -1619,7 +1619,7 @@ sub __write_etc_network_interfaces {
|
|||||||
die "bridge '$iface' - unable to find bridge port '$p'\n" if !$n;
|
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"
|
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') ||
|
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);
|
&$check_mtu($ifaces_copy, $p, $iface);
|
||||||
$bridgeports->{$p} = $iface;
|
$bridgeports->{$p} = $iface;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user