summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPierre POMES <pierre.pomes@gmail.com>2012-03-17 21:23:05 -0400
committerPierre POMES <pierre.pomes@gmail.com>2012-03-17 21:23:05 -0400
commitc7255ec1f0195c744e83e6274a3f7f4828fb178d (patch)
tree2611606921db6e791fff703645aa4a23f16b3b19 /usr
parent0f54c8065af71119a7080759028e8c6b57359907 (diff)
downloadpfsense-c7255ec1f0195c744e83e6274a3f7f4828fb178d.zip
pfsense-c7255ec1f0195c744e83e6274a3f7f4828fb178d.tar.gz
Do not show tabs for interfaces with 'link local' address (fe80::...)
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_dhcpv6.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php
index cdf1197..ee0f34b 100644
--- a/usr/local/www/services_dhcpv6.php
+++ b/usr/local/www/services_dhcpv6.php
@@ -79,8 +79,8 @@ $iflist = get_configured_interface_with_descr();
if (!$if || !isset($iflist[$if])) {
foreach ($iflist as $ifent => $ifname) {
$oc = $config['interfaces'][$ifent];
- if ((is_array($config['dhcpdv6'][$ifent]) && !isset($config['dhcpdv6'][$ifent]['enable']) && (!is_ipaddrv6($oc['ipaddrv6']))) ||
- (!is_array($config['dhcpdv6'][$ifent]) && (!is_ipaddrv6($oc['ipaddrv6']))))
+ if ((is_array($config['dhcpdv6'][$ifent]) && !isset($config['dhcpdv6'][$ifent]['enable']) && !(is_ipaddrv6($oc['ipaddrv6']) && (!preg_match("/fe80::/", $oc['ipaddrv6'])))) ||
+ (!is_array($config['dhcpdv6'][$ifent]) && !(is_ipaddrv6($oc['ipaddrv6']) && (!preg_match("/fe80::/", $oc['ipaddrv6'])))))
continue;
$if = $ifent;
break;
OpenPOWER on IntegriCloud