From bf2b1efa73c5021fc3ef7af2ef708327851b0af8 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 28 Oct 2021 16:45:06 +0200 Subject: [PATCH] interfaces: copy+paste fail in refactor of scoped IPv6 acquire PR: https://forum.opnsense.org/index.php?topic=25162.0 --- src/etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 97aad7132..5dde019fe 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -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; }