mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
add: added "sni" field for Trojan Link
This commit is contained in:
parent
c94ecf1acd
commit
8f9e708e7b
@ -62,7 +62,8 @@ class Helper
|
|||||||
$server->name = rawurlencode($server->name);
|
$server->name = rawurlencode($server->name);
|
||||||
$query = http_build_query([
|
$query = http_build_query([
|
||||||
'allowInsecure' => $server->allow_insecure,
|
'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 = "trojan://{$user->uuid}@{$server->host}:{$server->port}?{$query}#{$server->name}";
|
||||||
$uri .= "\r\n";
|
$uri .= "\r\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user