mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
feat: filter支持匹配节点标签
This commit is contained in:
parent
e04d82961f
commit
20466d07df
@ -82,7 +82,9 @@ class ClientController extends Controller
|
|||||||
if($filterArr){
|
if($filterArr){
|
||||||
$rejectFlag = true;
|
$rejectFlag = true;
|
||||||
foreach($filterArr as $filter){
|
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;
|
if($rejectFlag) return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user