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

@ -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);