mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: custom v2ray alter id
This commit is contained in:
parent
717043c96a
commit
e030ed8d80
@ -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']) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user