This commit is contained in:
root 2019-12-28 12:31:47 +08:00
parent 551073cb83
commit 5b29257227

View File

@ -52,15 +52,17 @@ class Helper
public static function buildVmessLink($item, $user) { public static function buildVmessLink($item, $user) {
$config = [ $config = [
"ps" => $item->name, "v" => "2",
"add" => $item->host, "ps" => $item->name,
"port" => $item->port, "add" => $item->host,
"id" => $user->v2ray_uuid, "port" => $item->port,
"aid" => "2", "id" => $user->v2ray_uuid,
"net" => $item->network, "aid" => "2",
"type" => "chacha20-poly1305", "net" => $item->network,
"host" => "", "type" => "none",
"tls" => $item->tls?"tls":"", "host" => "",
"path" => "",
"tls" => $item->tls?"tls":""
]; ];
if ($item->network == 'ws') { if ($item->network == 'ws') {
$wsSettings = json_decode($item->settings); $wsSettings = json_decode($item->settings);