From e37a8347499e98db29aac2c87777cbc66e288663 Mon Sep 17 00:00:00 2001 From: nick n <39005454+inphobia@users.noreply.github.com> Date: Sat, 3 Aug 2019 00:07:56 +0200 Subject: [PATCH] compare ieee mac against 6 iterations (#611) --- lib/App/Netdisco/Web/Plugin/Search/Node.pm | 2 +- lib/App/Netdisco/Web/Search.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Netdisco/Web/Plugin/Search/Node.pm b/lib/App/Netdisco/Web/Plugin/Search/Node.pm index 54f08cf3..965b511e 100644 --- a/lib/App/Netdisco/Web/Plugin/Search/Node.pm +++ b/lib/App/Netdisco/Web/Plugin/Search/Node.pm @@ -26,7 +26,7 @@ ajax '/ajax/content/search/node' => require_login sub { my $mac = NetAddr::MAC->new(mac => $node); undef $mac if ($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}/))); my @active = (param('archived') ? () : (-bool => 'active')); diff --git a/lib/App/Netdisco/Web/Search.pm b/lib/App/Netdisco/Web/Search.pm index 73f3ac92..b447b031 100644 --- a/lib/App/Netdisco/Web/Search.pm +++ b/lib/App/Netdisco/Web/Search.pm @@ -43,7 +43,7 @@ get '/search' => require_login sub { undef $mac if ($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}/))); if ($nd and $nd->count) {