mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-05 23:03:36 +03: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:local="clr-namespace:ProxySU"
|
||||
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://docs.microsoft.com/en-us/dotnet/desktop-wpf/fundamentals/styles-templates-overview-->
|
||||
<Window.Resources>
|
||||
|
|
|
@ -2217,8 +2217,12 @@ namespace ProxySU
|
|||
//&encryption={trojanGoEncryption}
|
||||
//&plugin={trojanGoPlugin}
|
||||
//#{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)
|
||||
{
|
||||
trojanGoUrl += $"&path={trojanGoPath}";
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue