Pārlūkot izejas kodu

update: client config

tokumeikoi 2 gadi atpakaļ
vecāks
revīzija
d1194ef310
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      app/Http/Controllers/Client/AppController.php

+ 3 - 1
app/Http/Controllers/Client/AppController.php

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