summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-24 16:03:34 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-02-24 16:03:34 -0300
commit04f5393f49be48989cb6e073a51bd35b33f177a1 (patch)
treeb7ca2185d3bd30a97fe5c112c88f1d66e663a8b7
parentb5388f033c51ba1102ec00d8c1d604c6ea39827d (diff)
downloadpfsense-04f5393f49be48989cb6e073a51bd35b33f177a1.zip
pfsense-04f5393f49be48989cb6e073a51bd35b33f177a1.tar.gz
Make is_linklocal case-insensitive and fix #3433
-rw-r--r--etc/inc/util.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 9f10f99..fbf5f84 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -533,7 +533,7 @@ function is_ipaddrv4($ipaddr) {
/* returns true if $ipaddr is a valid linklocal address */
function is_linklocal($ipaddr) {
- return (substr($ipaddr, 0, 5) == "fe80:");
+ return (strtolower(substr($ipaddr, 0, 5)) == "fe80:");
}
/* returns scope of a linklocal address */
OpenPOWER on IntegriCloud