update: app controller

This commit is contained in:
tokumeikoi 2022-11-24 17:43:02 +08:00
parent d62307b112
commit 56a6025ef9

View File

@ -34,7 +34,12 @@ class AppController extends Controller
foreach ($servers as $item) {
if ($item['type'] === 'shadowsocks'
&& in_array($item['cipher'], ['aes-128-gcm', 'aes-256-gcm', 'aes-192-gcm'])
&& in_array($item['cipher'], [
'aes-128-gcm',
'aes-192-gcm',
'aes-256-gcm',
'chacha20-ietf-poly1305'
])
) {
array_push($proxy, Protocols\Clash::buildShadowsocks($user['uuid'], $item));
array_push($proxies, $item['name']);