update: custom v2ray alter id

This commit is contained in:
Tokumeikoi 2020-11-17 23:02:12 +08:00
parent 717043c96a
commit e030ed8d80
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class Clash
$array['server'] = $server['host'];
$array['port'] = $server['port'];
$array['uuid'] = $uuid;
$array['alterId'] = 2;
$array['alterId'] = $server['alter_id'];
$array['cipher'] = 'auto';
$array['udp'] = true;
if ($server['tls']) {

View File

@ -20,7 +20,8 @@ class Shadowrocket
{
$userinfo = base64_encode('auto:' . $uuid . '@' . $server['host'] . ':' . $server['port']);
$config = [
'remark' => $server['name']
'remark' => $server['name'],
'alterId' => $server['alter_id']
];
if ($server['tls']) {
$tlsSettings = json_decode($server['tlsSettings'], true);