From 8f9e708e7bd3b24e13210ece4adb4ca91aac7282 Mon Sep 17 00:00:00 2001 From: QxQ <59914293+U-v-U@users.noreply.github.com> Date: Thu, 13 Aug 2020 19:30:07 +0800 Subject: [PATCH] add: added "sni" field for Trojan Link --- app/Utils/Helper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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";