summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-13 09:54:22 -0200
committerRenato Botelho <renato@netgate.com>2016-01-13 09:54:22 -0200
commita88a82a11d64110156f4e74823663d76b900255a (patch)
treee7368df542beb30cf7ba3a5e3ca797e61edc4fcf /src/usr/local
parent96e8acdd220610dd95387c5be3908cc37def2b26 (diff)
parent4fb0e75d254f53f5702f5f9c02381e2ddcb4b0b9 (diff)
downloadpfsense-a88a82a11d64110156f4e74823663d76b900255a.zip
pfsense-a88a82a11d64110156f4e74823663d76b900255a.tar.gz
Merge pull request #2412 from stilez/patch-16
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/status_dhcp_leases.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr/local/www/status_dhcp_leases.php b/src/usr/local/www/status_dhcp_leases.php
index 2ebbe88..b0c4b86 100644
--- a/src/usr/local/www/status_dhcp_leases.php
+++ b/src/usr/local/www/status_dhcp_leases.php
@@ -394,15 +394,13 @@ foreach ($leases as $data):
$icon = 'fa-times-circle-o';
}
- $lip = ip2ulong($data['ip']);
-
if ($data['act'] != "static") {
$dlsc=0;
foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) {
if (!is_array($dhcpifconf['range'])) {
continue;
}
- if (($lip >= ip2ulong($dhcpifconf['range']['from'])) && ($lip <= ip2ulong($dhcpifconf['range']['to']))) {
+ if (is_inrange_v4($data['ip'], $dhcpifconf['range']['from'], $dhcpifconf['range']['to'])) {
$data['if'] = $dhcpif;
$dhcp_leases_subnet_counter[$dlsc]['dhcpif'] = $dhcpif;
$dhcp_leases_subnet_counter[$dlsc]['from'] = $dhcpifconf['range']['from'];
OpenPOWER on IntegriCloud