From a8f98fa16058f400c4cd5092e640d6d4cf5fbccb Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 21 Jul 2010 18:29:33 +0000 Subject: [PATCH] show all clients in server dhcp range by default --- lib/PXElator/httpd.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/PXElator/httpd.pm b/lib/PXElator/httpd.pm index 8786b9f..4e29397 100644 --- a/lib/PXElator/httpd.pm +++ b/lib/PXElator/httpd.pm @@ -418,7 +418,9 @@ warn "XXX pids = ", dump( $daemons::pids ); my $mac = delete $conf->{mac} || ''; my $dev = $arp->{$mac}; - next unless $dev || $param->{all}; + my $in_dhcp_range = ip::in_dhcp_range($ip); + + next unless $dev || $param->{all} || $in_dhcp_range; my $style = 'style="color:' @@ -428,7 +430,7 @@ warn "XXX pids = ", dump( $daemons::pids ); $style ||= ''; my $ip_text = qq|$ip|; - $ip_text = qq|$ip| if ip::in_dhcp_range($ip); + $ip_text = qq|$ip| if $in_dhcp_range; $dev = qq|$dev| if $dev; -- 2.20.1