summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-24 12:25:04 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-24 12:25:04 -0200
commit736698bd60fc0d10d05acd4888ae51a745e6d540 (patch)
tree7aa81373c83b069caa0606e8605d54465faa096c /usr/local/www/services_dhcp.php
parent507628d5a249e8585a4d0e3d852308acd4673f37 (diff)
downloadpfsense-736698bd60fc0d10d05acd4888ae51a745e6d540.zip
pfsense-736698bd60fc0d10d05acd4888ae51a745e6d540.tar.gz
Fix logic of is_inrange()
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 39c9434..a0b85e7 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -200,7 +200,7 @@ $ifcfgip = $config['interfaces'][$if]['ipaddr'];
$ifcfgsn = $config['interfaces'][$if]['subnet'];
function is_inrange($test, $start, $end) {
- if ( (ip2ulong($test) < ip2ulong($end)) && (ip2ulong($test) > ip2ulong($start)) )
+ if ( (ip2ulong($test) <= ip2ulong($end)) && (ip2ulong($test) >= ip2ulong($start)) )
return true;
else
return false;
OpenPOWER on IntegriCloud