Update NetAddr::MAC dependency to fix IPv6 misidentification bug

This commit is contained in:
Oliver Gorwits
2015-01-27 07:27:36 +00:00
parent 67aebae2d3
commit 99a2facbc3
5 changed files with 3 additions and 5 deletions

View File

@@ -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 = ();

View File

@@ -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) {