another temporary fix for v6 addr / mac addr confusion in NetAddr::MAC

This commit is contained in:
Oliver Gorwits
2015-01-24 13:43:23 +00:00
parent 124f1b5ed1
commit 2d48243326
2 changed files with 2 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ 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) {