diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-14 14:36:25 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-14 14:36:25 -0300 |
commit | d28cd156d3d5d27c5ae621a9f9d348a516dad67e (patch) | |
tree | 29381c1f61c56f252b728eeec194128c1a9537e4 /etc/inc/interfaces.inc | |
parent | 612170a7ac870d1276d967027e8fef72a185a270 (diff) | |
download | pfsense-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.inc | 6 |
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"; |