mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-22 05:06:08 +03:00
sharelink
This commit is contained in:
parent
05f96fc790
commit
7263459a74
@ -28,10 +28,9 @@ namespace ProxySuper.Core.Services
|
|||||||
strBuilder.Append("trojan-go://");
|
strBuilder.Append("trojan-go://");
|
||||||
|
|
||||||
strBuilder.Append($"{HttpUtility.UrlEncode(settings.Password)}@{settings.Domain}:{settings.Port}/?");
|
strBuilder.Append($"{HttpUtility.UrlEncode(settings.Password)}@{settings.Domain}:{settings.Port}/?");
|
||||||
strBuilder.Append($"sni={HttpUtility.UrlEncode(settings.Domain)}&");
|
|
||||||
if (settings.EnableWebSocket)
|
if (settings.EnableWebSocket)
|
||||||
{
|
{
|
||||||
strBuilder.Append($"type=ws&host={HttpUtility.UrlEncode(settings.Domain)}&path={HttpUtility.UrlEncode(settings.WebSocketPath)}&");
|
strBuilder.Append($"type=ws&path={HttpUtility.UrlEncode(settings.WebSocketPath)}&");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -87,7 +86,7 @@ namespace ProxySuper.Core.Services
|
|||||||
aid = "0",
|
aid = "0",
|
||||||
net = "",
|
net = "",
|
||||||
type = "none",
|
type = "none",
|
||||||
host = settings.Domain,
|
host = "",
|
||||||
path = "",
|
path = "",
|
||||||
tls = "tls",
|
tls = "tls",
|
||||||
ps = "",
|
ps = "",
|
||||||
|
Loading…
Reference in New Issue
Block a user