summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-24 12:29:23 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-24 12:29:23 -0200
commita78bf0c8b382d104638f1e02582a5a64a46800a6 (patch)
treea036be7f0e66d9059cb8bce261572ba5e23df5f1 /usr/local/www/services_dhcpv6.php
parent5440451927ac20d486cad52fcfac5d2efa363683 (diff)
downloadpfsense-a78bf0c8b382d104638f1e02582a5a64a46800a6.zip
pfsense-a78bf0c8b382d104638f1e02582a5a64a46800a6.tar.gz
Fix logic of v6 version of is_inrange()
Diffstat (limited to 'usr/local/www/services_dhcpv6.php')
-rw-r--r--usr/local/www/services_dhcpv6.php2
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;
OpenPOWER on IntegriCloud