fix trojan shadowrocket remarks

This commit is contained in:
Tokumeikoi 2020-06-12 17:16:21 +08:00
parent e733a53e85
commit 2fc77a38f2

View File

@ -59,7 +59,7 @@ class Helper
public static function buildTrojanLink(ServerTrojan $server, User $user)
{
$server->name = urlencode($server->name);
$server->name = rawurlencode($server->name);
$uri = "trojan://{$user->uuid}@{$server->host}:{$server->port}#{$server->name}";
$uri .= "\r\n";
return $uri;