feat: filter支持匹配节点标签

This commit is contained in:
xboard 2023-12-10 18:09:58 +08:00
parent e04d82961f
commit 20466d07df

View File

@ -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;
}