mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: clash remove proxies empty group
This commit is contained in:
parent
9a28d27082
commit
e745c2a5be
@ -78,6 +78,10 @@ class Clash
|
|||||||
if ($isFilter) continue;
|
if ($isFilter) continue;
|
||||||
$config['proxy-groups'][$k]['proxies'] = array_merge($config['proxy-groups'][$k]['proxies'], $proxies);
|
$config['proxy-groups'][$k]['proxies'] = array_merge($config['proxy-groups'][$k]['proxies'], $proxies);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
||||||
|
return $group['proxies'];
|
||||||
|
});
|
||||||
// Force the current subscription domain to be a direct rule
|
// Force the current subscription domain to be a direct rule
|
||||||
$subsDomain = $_SERVER['HTTP_HOST'];
|
$subsDomain = $_SERVER['HTTP_HOST'];
|
||||||
if ($subsDomain) {
|
if ($subsDomain) {
|
||||||
|
Loading…
Reference in New Issue
Block a user