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
feb673cab3
commit
529a72dda5
@ -82,6 +82,7 @@ class Clash
|
|||||||
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
||||||
return $group['proxies'];
|
return $group['proxies'];
|
||||||
});
|
});
|
||||||
|
$config['proxy-groups'] = array_values($config['proxy-groups']);
|
||||||
// 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) {
|
||||||
|
@ -71,6 +71,7 @@ class ClashMeta
|
|||||||
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
||||||
return $group['proxies'];
|
return $group['proxies'];
|
||||||
});
|
});
|
||||||
|
$config['proxy-groups'] = array_values($config['proxy-groups']);
|
||||||
// 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) {
|
||||||
|
@ -78,6 +78,7 @@ class Stash
|
|||||||
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
$config['proxy-groups'] = array_filter($config['proxy-groups'], function($group) {
|
||||||
return $group['proxies'];
|
return $group['proxies'];
|
||||||
});
|
});
|
||||||
|
$config['proxy-groups'] = array_values($config['proxy-groups']);
|
||||||
// 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