mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 15:39:10 +08:00
update: new cipher
This commit is contained in:
parent
7872516037
commit
964376fa3c
@ -36,7 +36,9 @@ class Clash
|
|||||||
$proxies = [];
|
$proxies = [];
|
||||||
|
|
||||||
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'])
|
||||||
|
) {
|
||||||
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,9 @@ class Shadowsocks
|
|||||||
$bytesRemaining = $user['transfer_enable'] - $bytesUsed;
|
$bytesRemaining = $user['transfer_enable'] - $bytesUsed;
|
||||||
|
|
||||||
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'])
|
||||||
|
) {
|
||||||
array_push($configs, self::SIP008($item, $user));
|
array_push($configs, self::SIP008($item, $user));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,8 @@ class Stash
|
|||||||
$proxies = [];
|
$proxies = [];
|
||||||
|
|
||||||
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'])) {
|
||||||
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']);
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,9 @@ class Surfboard
|
|||||||
$proxyGroup = '';
|
$proxyGroup = '';
|
||||||
|
|
||||||
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'])
|
||||||
|
) {
|
||||||
// [Proxy]
|
// [Proxy]
|
||||||
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
||||||
// [Proxy Group]
|
// [Proxy Group]
|
||||||
|
@ -28,7 +28,9 @@ class Surge
|
|||||||
$proxyGroup = '';
|
$proxyGroup = '';
|
||||||
|
|
||||||
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'])
|
||||||
|
) {
|
||||||
// [Proxy]
|
// [Proxy]
|
||||||
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
$proxies .= self::buildShadowsocks($user['uuid'], $item);
|
||||||
// [Proxy Group]
|
// [Proxy Group]
|
||||||
|
@ -21,7 +21,7 @@ class ServerShadowsocksSave extends FormRequest
|
|||||||
'host' => 'required',
|
'host' => 'required',
|
||||||
'port' => 'required',
|
'port' => 'required',
|
||||||
'server_port' => 'required',
|
'server_port' => 'required',
|
||||||
'cipher' => 'required|in:aes-128-gcm,aes-256-gcm,chacha20-ietf-poly1305',
|
'cipher' => 'required|in:aes-128-gcm,aes-192-gcm,aes-256-gcm,chacha20-ietf-poly1305,2022-blake3-aes-128-gcm,2022-blake3-aes-256-gcm',
|
||||||
'obfs' => 'nullable|in:http',
|
'obfs' => 'nullable|in:http',
|
||||||
'obfs_settings' => 'nullable|array',
|
'obfs_settings' => 'nullable|array',
|
||||||
'tags' => 'nullable|array',
|
'tags' => 'nullable|array',
|
||||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user