mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix trojan shadowrocket remarks
This commit is contained in:
parent
ff3451d0e0
commit
e733a53e85
@ -59,6 +59,7 @@ class Helper
|
|||||||
|
|
||||||
public static function buildTrojanLink(ServerTrojan $server, User $user)
|
public static function buildTrojanLink(ServerTrojan $server, User $user)
|
||||||
{
|
{
|
||||||
|
$server->name = urlencode($server->name);
|
||||||
$uri = "trojan://{$user->uuid}@{$server->host}:{$server->port}#{$server->name}";
|
$uri = "trojan://{$user->uuid}@{$server->host}:{$server->port}#{$server->name}";
|
||||||
$uri .= "\r\n";
|
$uri .= "\r\n";
|
||||||
return $uri;
|
return $uri;
|
||||||
|
Loading…
Reference in New Issue
Block a user