compare ieee mac against 6 iterations (#611)
This commit is contained in:
@@ -26,7 +26,7 @@ ajax '/ajax/content/search/node' => require_login sub {
|
|||||||
my $mac = NetAddr::MAC->new(mac => $node);
|
my $mac = NetAddr::MAC->new(mac => $node);
|
||||||
undef $mac if
|
undef $mac if
|
||||||
($mac and $mac->as_ieee
|
($mac and $mac->as_ieee
|
||||||
and (($mac->as_ieee eq '00:00:00:00')
|
and (($mac->as_ieee eq '00:00:00:00:00:00')
|
||||||
or ($mac->as_ieee !~ m/$RE{net}{MAC}/)));
|
or ($mac->as_ieee !~ m/$RE{net}{MAC}/)));
|
||||||
|
|
||||||
my @active = (param('archived') ? () : (-bool => 'active'));
|
my @active = (param('archived') ? () : (-bool => 'active'));
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ get '/search' => require_login sub {
|
|||||||
|
|
||||||
undef $mac if
|
undef $mac if
|
||||||
($mac and $mac->as_ieee
|
($mac and $mac->as_ieee
|
||||||
and (($mac->as_ieee eq '00:00:00:00')
|
and (($mac->as_ieee eq '00:00:00:00:00:00')
|
||||||
or ($mac->as_ieee !~ m/$RE{net}{MAC}/)));
|
or ($mac->as_ieee !~ m/$RE{net}{MAC}/)));
|
||||||
|
|
||||||
if ($nd and $nd->count) {
|
if ($nd and $nd->count) {
|
||||||
|
|||||||
Reference in New Issue
Block a user