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:05:51 -0300 |
commit | f13a1d6a8a57df7c5c6466bb34ebdf26e77a2846 (patch) | |
tree | 11efacd3f73359e4824584851c47e888d2f10f7e /etc | |
parent | 2c02c4d09aac8186e739cc9fe08afcaba91dc237 (diff) | |
download | pfsense-f13a1d6a8a57df7c5c6466bb34ebdf26e77a2846.zip pfsense-f13a1d6a8a57df7c5c6466bb34ebdf26e77a2846.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 8f57553..2c79517 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -500,7 +500,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 */ |