summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-14 14:36:25 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-14 14:36:25 -0300
commitd28cd156d3d5d27c5ae621a9f9d348a516dad67e (patch)
tree29381c1f61c56f252b728eeec194128c1a9537e4 /etc/inc/interfaces.inc
parent612170a7ac870d1276d967027e8fef72a185a270 (diff)
downloadpfsense-d28cd156d3d5d27c5ae621a9f9d348a516dad67e.zip
pfsense-d28cd156d3d5d27c5ae621a9f9d348a516dad67e.tar.gz
Make fe80: addresses check case insensitive
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 0ad8211..c35c297 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -4337,7 +4337,7 @@ function find_interface_ipv6($interface, $flush = false) {
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(! preg_match("/fe80::/", $parts[1])) {
+ if(! preg_match("/fe80:/i", $parts[1])) {
$ifinfo['ipaddrv6'] = $parts[1];
if($parts[2] == "-->") {
$parts[5] = "126";
@@ -4376,7 +4376,7 @@ function find_interface_ipv6_ll($interface, $flush = false) {
foreach($output as $line) {
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(preg_match("/fe80::/", $parts[1])) {
+ if(preg_match("/fe80:/i", $parts[1])) {
$partsaddress = explode("%", $parts[1]);
$ifinfo['linklocal'] = $partsaddress[0];
}
@@ -4422,7 +4422,7 @@ function find_interface_subnetv6($interface, $flush = false) {
$line = trim($line);
if(preg_match("/inet6/", $line)) {
$parts = explode(" ", $line);
- if(! preg_match("/fe80::/", $parts[1])) {
+ if(! preg_match("/fe80:/i", $parts[1])) {
$ifinfo['ipaddrv6'] = $parts[1];
if($parts[2] == "-->") {
$parts[5] = "126";
OpenPOWER on IntegriCloud