#748 always call NetAddr::MAC->new() with named mac param

This commit is contained in:
Oliver Gorwits
2020-10-17 13:05:46 +01:00
parent 4cd0c3eef9
commit c7b8c3bcbd
5 changed files with 6 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ get '/ajax/content/search/port' => require_login sub {
}
else {
my ( $likeval, $likeclause ) = sql_match($q);
my $mac = NetAddr::MAC->new($q);
my $mac = NetAddr::MAC->new(mac => $q);
undef $mac if
($mac and $mac->as_ieee