mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update: clash remove proxies empty group
This commit is contained in:
		| @@ -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) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user