mirror of
https://github.com/v2board/v2board.git
synced 2025-02-25 06:40:26 +08:00
update
This commit is contained in:
parent
d9dcea4e4f
commit
218338960b
@ -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 = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user