mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 23:49:09 +08:00
update: app
This commit is contained in:
parent
ad8dee359f
commit
5df67aef16
@ -29,19 +29,19 @@ class AppController extends Controller
|
|||||||
$proxy = [];
|
$proxy = [];
|
||||||
$proxies = [];
|
$proxies = [];
|
||||||
|
|
||||||
foreach ($servers['shadowsocks'] as $item) {
|
foreach ($servers as $item) {
|
||||||
array_push($proxy, Clash::buildShadowsocks($user->uuid, $item));
|
if ($item['type'] === 'shadowsocks') {
|
||||||
array_push($proxies, $item->name);
|
array_push($proxy, Clash::buildShadowsocks($user->uuid, $item));
|
||||||
}
|
array_push($proxies, $item->name);
|
||||||
|
}
|
||||||
foreach ($servers['vmess'] as $item) {
|
if ($item['type'] === 'v2ray') {
|
||||||
array_push($proxy, Clash::buildVmess($user->uuid, $item));
|
array_push($proxy, Clash::buildVmess($user->uuid, $item));
|
||||||
array_push($proxies, $item->name);
|
array_push($proxies, $item->name);
|
||||||
}
|
}
|
||||||
|
if ($item['type'] === 'trojan') {
|
||||||
foreach ($servers['trojan'] as $item) {
|
array_push($proxy, Clash::buildTrojan($user->uuid, $item));
|
||||||
array_push($proxy, Clash::buildTrojan($user->uuid, $item));
|
array_push($proxies, $item->name);
|
||||||
array_push($proxies, $item->name);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$config['proxies'] = array_merge($config['proxies'] ? $config['proxies'] : [], $proxy);
|
$config['proxies'] = array_merge($config['proxies'] ? $config['proxies'] : [], $proxy);
|
||||||
|
Loading…
Reference in New Issue
Block a user