mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
update: fix client
This commit is contained in:
parent
d1194ef310
commit
bb900d59b0
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers\Client\Protocols;
|
namespace App\Http\Controllers\Client\Protocols;
|
||||||
|
|
||||||
|
use App\Utils\Dict;
|
||||||
|
use phpDocumentor\Reflection\Types\Self_;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
||||||
class Clash
|
class Clash
|
||||||
@ -37,7 +39,12 @@ class Clash
|
|||||||
|
|
||||||
foreach ($servers as $item) {
|
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'])
|
&& in_array($item['cipher'], [
|
||||||
|
'aes-128-gcm',
|
||||||
|
'aes-192-gcm',
|
||||||
|
'aes-256-gcm',
|
||||||
|
'chacha20-ietf-poly1305'
|
||||||
|
])
|
||||||
) {
|
) {
|
||||||
array_push($proxy, self::buildShadowsocks($user['uuid'], $item));
|
array_push($proxy, self::buildShadowsocks($user['uuid'], $item));
|
||||||
array_push($proxies, $item['name']);
|
array_push($proxies, $item['name']);
|
||||||
|
@ -37,7 +37,13 @@ class Stash
|
|||||||
|
|
||||||
foreach ($servers as $item) {
|
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'])) {
|
&& in_array($item['cipher'], [
|
||||||
|
'aes-128-gcm',
|
||||||
|
'aes-192-gcm',
|
||||||
|
'aes-256-gcm',
|
||||||
|
'chacha20-ietf-poly1305'
|
||||||
|
])
|
||||||
|
) {
|
||||||
array_push($proxy, self::buildShadowsocks($user['uuid'], $item));
|
array_push($proxy, self::buildShadowsocks($user['uuid'], $item));
|
||||||
array_push($proxies, $item['name']);
|
array_push($proxies, $item['name']);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,12 @@ class Surfboard
|
|||||||
|
|
||||||
foreach ($servers as $item) {
|
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'])
|
&& in_array($item['cipher'], [
|
||||||
|
'aes-128-gcm',
|
||||||
|
'aes-192-gcm',
|
||||||
|
'aes-256-gcm',
|
||||||
|
'chacha20-ietf-poly1305'
|
||||||
|
])
|
||||||
) {
|
) {
|
||||||
// [Proxy]
|
// [Proxy]
|
||||||
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
||||||
|
@ -29,7 +29,12 @@ class Surge
|
|||||||
|
|
||||||
foreach ($servers as $item) {
|
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'])
|
&& in_array($item['cipher'], [
|
||||||
|
'aes-128-gcm',
|
||||||
|
'aes-192-gcm',
|
||||||
|
'aes-256-gcm',
|
||||||
|
'chacha20-ietf-poly1305'
|
||||||
|
])
|
||||||
) {
|
) {
|
||||||
// [Proxy]
|
// [Proxy]
|
||||||
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
||||||
|
Loading…
Reference in New Issue
Block a user