diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-24 12:25:04 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-24 12:25:04 -0200 |
commit | 736698bd60fc0d10d05acd4888ae51a745e6d540 (patch) | |
tree | 7aa81373c83b069caa0606e8605d54465faa096c /usr/local/www/services_dhcp.php | |
parent | 507628d5a249e8585a4d0e3d852308acd4673f37 (diff) | |
download | pfsense-736698bd60fc0d10d05acd4888ae51a745e6d540.zip pfsense-736698bd60fc0d10d05acd4888ae51a745e6d540.tar.gz |
Fix logic of is_inrange()
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 2 |
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; |