interfaces: copy+paste fail in refactor of scoped IPv6 acquire

PR: https://forum.opnsense.org/index.php?topic=25162.0
This commit is contained in:
Franco Fichtner 2021-10-28 16:45:06 +02:00
parent 1c34b86cb5
commit bf2b1efa73

View File

@ -4633,7 +4633,7 @@ function interfaces_scoped_address6($interface, $ifconfig_details = null)
$ifcfgipv6 = $networkv6 = $subnetbitsv6 = null;
foreach (interfaces_addresses($interface, false, $ifconfig_details) as $addr) {
if ($addr['family'] != 'inet6' || $addr['deprecated'] || $addr['tentative'] || $addr['alias'] || $addr['scope']) {
if ($addr['family'] != 'inet6' || $addr['deprecated'] || $addr['tentative'] || $addr['alias'] || !$addr['scope']) {
continue;
}