diff options
author | Seth Mos <seth.mos@dds.nl> | 2010-12-26 01:02:58 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2010-12-26 01:02:58 +0100 |
commit | c9d174dfc0a29c59ae35f43a470460f36f695b61 (patch) | |
tree | 57bafffac6a4ca6f0c7a460c7a4aa0f86212849b | |
parent | 196b6749b8654519030dea7fb606b60a2624fb0d (diff) | |
download | pfsense-c9d174dfc0a29c59ae35f43a470460f36f695b61.zip pfsense-c9d174dfc0a29c59ae35f43a470460f36f695b61.tar.gz |
Properly ignore the local link addresses
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
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]; } |