mirror of
https://github.com/v2board/v2board.git
synced 2025-02-24 22:30:29 +08:00
update
This commit is contained in:
parent
d9dcea4e4f
commit
218338960b
@ -140,11 +140,17 @@ class ClientController extends Controller
|
||||
array_push($proxyGroup, [
|
||||
'name' => 'select',
|
||||
'type' => 'select',
|
||||
'proxies' => $proxies
|
||||
'proxies' => array_merge($proxies, [
|
||||
'auto',
|
||||
'fallback-auto'
|
||||
])
|
||||
]);
|
||||
|
||||
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) {}
|
||||
|
||||
$config = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user