1
0
Fork 0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-04-13 22:20:55 +00:00

修复Trojan-go分享链接错误

This commit is contained in:
ProxySU 2020-11-04 10:19:30 +08:00
parent df98787e6c
commit 84578e16cd
3 changed files with 6 additions and 2 deletions

View file

@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ProxySU" xmlns:local="clr-namespace:ProxySU"
mc:Ignorable="d" mc:Ignorable="d"
Title="ProxySU - v2.4.19-beta2" Height="675" Width="650"> Title="ProxySU - v2.4.19-beta3" Height="675" Width="650">
<!--以下样式参考自https://yq.aliyun.com/articles/331878 <!--以下样式参考自https://yq.aliyun.com/articles/331878
https://docs.microsoft.com/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview--> https://docs.microsoft.com/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview-->
<Window.Resources> <Window.Resources>

View file

@ -2217,8 +2217,12 @@ namespace ProxySU
//&encryption={trojanGoEncryption} //&encryption={trojanGoEncryption}
//&plugin={trojanGoPlugin} //&plugin={trojanGoPlugin}
//#{trojanGoRemarks} //#{trojanGoRemarks}
string trojanGoUrl = $"trojan-go://{trojanGoPassword}@{trojanGoHost}:{trojanGoPort}/?sni={trojanGoSni}&type={trojanGoType}&host={trojanGohostName}"; string trojanGoUrl = $"trojan-go://{trojanGoPassword}@{trojanGoHost}:{trojanGoPort}/?sni={trojanGoSni}&type={trojanGoType}";
if (String.IsNullOrEmpty(trojanGohostName) == false)
{
trojanGoUrl += $"&host={trojanGohostName}";
}
if (String.IsNullOrEmpty(trojanGoPath) == false) if (String.IsNullOrEmpty(trojanGoPath) == false)
{ {
trojanGoUrl += $"&path={trojanGoPath}"; trojanGoUrl += $"&path={trojanGoPath}";

Binary file not shown.