update trojan server

This commit is contained in:
Tokumeikoi
2020-06-12 00:35:35 +08:00
parent 066fd96fb5
commit 0e4d5c9e99
3 changed files with 61 additions and 50 deletions

View File

@ -56,6 +56,13 @@ class Helper
return $str;
}
public static function buildTrojanLink(Server $server, User $user)
{
$uri = "trojan://{$user->uuid}@{$server->host}:{$server->port}";
$uri .= "\r\n";
return $uri;
}
public static function buildVmessLink(Server $server, User $user)
{
$config = [