release 2.046004

This commit is contained in:
Oliver Gorwits
2020-10-17 14:28:53 +01:00
parent 64d65c72ee
commit 2b72233738
15 changed files with 25 additions and 19 deletions

View File

@@ -288,7 +288,7 @@ sub search_by_field {
}
# get IEEE MAC format
my $mac = NetAddr::MAC->new(mac => $p->{mac});
my $mac = NetAddr::MAC->new(mac => ($p->{mac} || ''));
undef $mac if
($mac and $mac->as_ieee
and (($mac->as_ieee eq '00:00:00:00:00:00')
@@ -401,7 +401,7 @@ sub search_fuzzy {
}
# get IEEE MAC format
my $mac = NetAddr::MAC->new(mac => $q);
my $mac = NetAddr::MAC->new(mac => ($q || ''));
undef $mac if
($mac and $mac->as_ieee
and (($mac->as_ieee eq '00:00:00:00:00:00')