diff --git a/app/Http/Controllers/V1/Client/ClientController.php b/app/Http/Controllers/V1/Client/ClientController.php index 0390410..4711c09 100644 --- a/app/Http/Controllers/V1/Client/ClientController.php +++ b/app/Http/Controllers/V1/Client/ClientController.php @@ -82,7 +82,9 @@ class ClientController extends Controller if($filterArr){ $rejectFlag = true; foreach($filterArr as $filter){ - if(stripos($server['name'],$filter) !== false) $rejectFlag = false; + if(stripos($server['name'],$filter) !== false + || in_array($filter, $server['tags']) + ) $rejectFlag = false; } if($rejectFlag) return true; }