diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-24 12:29:23 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-24 12:29:23 -0200 |
commit | a78bf0c8b382d104638f1e02582a5a64a46800a6 (patch) | |
tree | a036be7f0e66d9059cb8bce261572ba5e23df5f1 | |
parent | 5440451927ac20d486cad52fcfac5d2efa363683 (diff) | |
download | pfsense-a78bf0c8b382d104638f1e02582a5a64a46800a6.zip pfsense-a78bf0c8b382d104638f1e02582a5a64a46800a6.tar.gz |
Fix logic of v6 version of is_inrange()
-rw-r--r-- | usr/local/www/services_dhcpv6.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php index 524df12..315a546 100644 --- a/usr/local/www/services_dhcpv6.php +++ b/usr/local/www/services_dhcpv6.php @@ -145,7 +145,7 @@ if(is_array($dhcrelaycfg)) { } function is_inrange($test, $start, $end) { - if ( (inet_pton($test) < inet_pton($end)) && (inet_pton($test) > inet_pton($start)) ) + if ( (inet_pton($test) <= inet_pton($end)) && (inet_pton($test) >= inet_pton($start)) ) return true; else return false; |