mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -140,11 +140,17 @@ class ClientController extends Controller | |||||||
|         array_push($proxyGroup, [ |         array_push($proxyGroup, [ | ||||||
|             'name' => 'select', |             'name' => 'select', | ||||||
|             'type' => 'select', |             'type' => 'select', | ||||||
|             'proxies' => $proxies |             'proxies' => array_merge($proxies, [ | ||||||
|  |                 'auto', | ||||||
|  |                 'fallback-auto' | ||||||
|  |             ]) | ||||||
|         ]); |         ]); | ||||||
|  |  | ||||||
|         try { |         try { | ||||||
|             $rules = Yaml::parseFile(base_path() . '/resources/rules/clash.rule.yaml')['Rule']; |             $rules = []; | ||||||
|  |             foreach (glob(base_path() . '/resources/rules/' . '*.rule.yaml') as $file) { | ||||||
|  |                 $rules = array_merge($rules, Yaml::parseFile($file)['Rule']); | ||||||
|  |             } | ||||||
|         } catch (\Exception $e) {} |         } catch (\Exception $e) {} | ||||||
|  |  | ||||||
|         $config = [ |         $config = [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user