mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-12 21:51:02 +00:00
修复Trojan-go分享链接错误
This commit is contained in:
parent
df98787e6c
commit
84578e16cd
3 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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.
Loading…
Add table
Reference in a new issue