diff --git a/app/Utils/Helper.php b/app/Utils/Helper.php index b6eb1ac7..b744da95 100644 --- a/app/Utils/Helper.php +++ b/app/Utils/Helper.php @@ -62,7 +62,8 @@ class Helper $server->name = rawurlencode($server->name); $query = http_build_query([ 'allowInsecure' => $server->allow_insecure, - 'peer' => $server->server_name + 'peer' => $server->server_name, + 'sni' => $server->server_name ]); $uri = "trojan://{$user->uuid}@{$server->host}:{$server->port}?{$query}#{$server->name}"; $uri .= "\r\n";