--- lib/PXElator/httpd.pm 2010/01/31 15:22:34 496
+++ lib/PXElator/httpd.pm 2010/07/21 18:29:33 514
@@ -418,7 +418,9 @@
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 @@
$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;