Update NetAddr::MAC dependency to fix IPv6 misidentification bug
This commit is contained in:
@@ -23,7 +23,6 @@ ajax '/ajax/content/search/node' => require_login sub {
|
||||
my ( $start, $end ) = param('daterange') =~ m/(\d+-\d+-\d+)/gmx;
|
||||
|
||||
my $mac = NetAddr::MAC->new(mac => $node);
|
||||
undef $mac if (defined $mac and $node =~ m/:{2}[a-f0-9]*$/i); # temp fix
|
||||
my @active = (param('archived') ? () : (-bool => 'active'));
|
||||
|
||||
my @times = ();
|
||||
|
||||
@@ -80,7 +80,6 @@ get '/search' => require_login sub {
|
||||
my $nd = $s->resultset('Device')->search_fuzzy($q);
|
||||
my ($likeval, $likeclause) = sql_match($q);
|
||||
my $mac = NetAddr::MAC->new($q);
|
||||
undef $mac if (defined $mac and $q =~ m/:{2}[a-f0-9]*$/i); # temp fix
|
||||
|
||||
if ($nd and $nd->count) {
|
||||
if ($nd->count == 1) {
|
||||
|
||||
Reference in New Issue
Block a user