Skip to content

Commit

Permalink
Oui already "clean"
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Sep 19, 2023
1 parent 201759b commit eb75a10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/Table/FdbTablesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ protected function findPortsByOui(array $vendor_ouis, Builder $query): Builder
{
$query->where(function (Builder $query) use ($vendor_ouis) {
foreach ($vendor_ouis as $oui) {
$clean_oui = str_replace(':', '', $oui);
$query->orWhere('ports_fdb.mac_address', 'LIKE', "$clean_oui%");
$query->orWhere('ports_fdb.mac_address', 'LIKE', "$oui%");
}
});

Expand Down

0 comments on commit eb75a10

Please sign in to comment.