update: new cipher

This commit is contained in:
tokumeikoi
2022-11-18 03:25:02 +08:00
parent 964376fa3c
commit 5c4e863560
3 changed files with 26 additions and 1 deletions

View File

@ -99,6 +99,13 @@ class UniProxyController extends Controller
'obfs' => $this->nodeInfo->obfs,
'obfs_settings' => $this->nodeInfo->obfs_settings
];
if ($this->nodeInfo->cipher === '2022-blake3-aes-128-gcm') {
$response['server_key'] = Helper::getShadowsocksServerKey($this->nodeInfo->created_at, 16);
}
if ($this->nodeInfo->cipher === '2022-blake3-aes-256-gcm') {
$response['server_key'] = Helper::getShadowsocksServerKey($this->nodeInfo->created_at, 32);
}
break;
case 'v2ray':
$response = [