summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2010-12-26 01:02:58 +0100
committerSeth Mos <seth.mos@dds.nl>2010-12-26 01:02:58 +0100
commitc9d174dfc0a29c59ae35f43a470460f36f695b61 (patch)
tree57bafffac6a4ca6f0c7a460c7a4aa0f86212849b /etc/inc/interfaces.inc
parent196b6749b8654519030dea7fb606b60a2624fb0d (diff)
downloadpfsense-c9d174dfc0a29c59ae35f43a470460f36f695b61.zip
pfsense-c9d174dfc0a29c59ae35f43a470460f36f695b61.tar.gz
Properly ignore the local link addresses
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4d47495..6790d9e 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3349,7 +3349,7 @@ function find_interface_ipv6($interface, $flush = false)
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(! stristr("fe80::", $parts[1])) {
+ if(! preg_match("/fe80::/", $parts[1])) {
$ifinfo['ipaddrv6'] = $parts[1];
$ifinfo['subnetbitsv6'] = $parts[3];
}
OpenPOWER on IntegriCloud