diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-24 16:03:34 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-24 16:03:34 -0300 |
commit | 04f5393f49be48989cb6e073a51bd35b33f177a1 (patch) | |
tree | b7ca2185d3bd30a97fe5c112c88f1d66e663a8b7 /etc | |
parent | b5388f033c51ba1102ec00d8c1d604c6ea39827d (diff) | |
download | pfsense-04f5393f49be48989cb6e073a51bd35b33f177a1.zip pfsense-04f5393f49be48989cb6e073a51bd35b33f177a1.tar.gz |
Make is_linklocal case-insensitive and fix #3433
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 2 |
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 */ |