From 7263459a74fdb2f98afa711fdab76c9b960a9122 Mon Sep 17 00:00:00 2001 From: next-autumn Date: Wed, 2 Jun 2021 17:51:27 +0800 Subject: [PATCH] sharelink --- ProxySuper.Core/Services/ShareLink.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ProxySuper.Core/Services/ShareLink.cs b/ProxySuper.Core/Services/ShareLink.cs index d669aaf..0879484 100644 --- a/ProxySuper.Core/Services/ShareLink.cs +++ b/ProxySuper.Core/Services/ShareLink.cs @@ -28,10 +28,9 @@ namespace ProxySuper.Core.Services strBuilder.Append("trojan-go://"); strBuilder.Append($"{HttpUtility.UrlEncode(settings.Password)}@{settings.Domain}:{settings.Port}/?"); - strBuilder.Append($"sni={HttpUtility.UrlEncode(settings.Domain)}&"); 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 { @@ -87,7 +86,7 @@ namespace ProxySuper.Core.Services aid = "0", net = "", type = "none", - host = settings.Domain, + host = "", path = "", tls = "tls", ps = "",