From: Dobrica Pavlinusic Date: Wed, 21 Jul 2010 18:29:33 +0000 (+0000) Subject: show all clients in server dhcp range by default X-Git-Url: http://git.rot13.org/?p=pxelator;a=commitdiff_plain;h=a8f98fa16058f400c4cd5092e640d6d4cf5fbccb show all clients in server dhcp range by default --- 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;