mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
551073cb83
commit
5b29257227
@ -52,15 +52,17 @@ class Helper
|
|||||||
|
|
||||||
public static function buildVmessLink($item, $user) {
|
public static function buildVmessLink($item, $user) {
|
||||||
$config = [
|
$config = [
|
||||||
|
"v" => "2",
|
||||||
"ps" => $item->name,
|
"ps" => $item->name,
|
||||||
"add" => $item->host,
|
"add" => $item->host,
|
||||||
"port" => $item->port,
|
"port" => $item->port,
|
||||||
"id" => $user->v2ray_uuid,
|
"id" => $user->v2ray_uuid,
|
||||||
"aid" => "2",
|
"aid" => "2",
|
||||||
"net" => $item->network,
|
"net" => $item->network,
|
||||||
"type" => "chacha20-poly1305",
|
"type" => "none",
|
||||||
"host" => "",
|
"host" => "",
|
||||||
"tls" => $item->tls?"tls":"",
|
"path" => "",
|
||||||
|
"tls" => $item->tls?"tls":""
|
||||||
];
|
];
|
||||||
if ($item->network == 'ws') {
|
if ($item->network == 'ws') {
|
||||||
$wsSettings = json_decode($item->settings);
|
$wsSettings = json_decode($item->settings);
|
||||||
|
Loading…
Reference in New Issue
Block a user