mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-04-02 21:36:17 +03:00
Trojan-go更新安装脚本和配置文件
This commit is contained in:
parent
bc6e515898
commit
6a2a003e98
11 changed files with 1419 additions and 1498 deletions
File diff suppressed because it is too large
Load diff
|
@ -61,7 +61,9 @@
|
||||||
<RowDefinition></RowDefinition>
|
<RowDefinition></RowDefinition>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<RadioButton x:Name="RadioButtonWebSocketTLS2WebHot" Content="WebSocket+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="1" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
<RadioButton x:Name="RadioButtonWebSocketTLS2WebHot" Content="WebSocket+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="1" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
||||||
<TextBlock Text="稳定性强,使用Caddy做伪装网站,隐藏代理,会被识别为访问网站的https流量,抗封锁识别最强。(需要域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="稳定性强,使用Caddy做前置,隐藏代理,会被识别为访问网站的https流量,抗封锁识别最强。(需要域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="3"></TextBlock>
|
||||||
|
<RadioButton x:Name="RadioButtonHTTP2WebHot" Content="HTTP2+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="2" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
||||||
|
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,使用Caddy做前置,需要域名" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3"></TextBlock>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
@ -118,7 +120,7 @@
|
||||||
<RadioButton x:Name="RadioButtonWebSocketTLS" Content="WebSocket+TLS" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="2" Checked="RadioButtonHTTP2_Checked"/>
|
<RadioButton x:Name="RadioButtonWebSocketTLS" Content="WebSocket+TLS" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="2" Checked="RadioButtonHTTP2_Checked"/>
|
||||||
<TextBlock Text="数据加密传输,传输协议使用WebSocket,启用TLS,将被识别为TLS流量。(需要域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="数据加密传输,传输协议使用WebSocket,启用TLS,将被识别为TLS流量。(需要域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3"></TextBlock>
|
||||||
<RadioButton x:Name="RadioButtonWebSocketTLS2Web" Content="WebSocket+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="3" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
<RadioButton x:Name="RadioButtonWebSocketTLS2Web" Content="WebSocket+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="3" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
||||||
<TextBlock Text="稳定性强,使用Caddy做伪装网站,隐藏代理,会被识别为访问网站的https流量,抗封锁识别最强。(需要域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="稳定性强,使用使用Caddy做前置,隐藏代理,会被识别为访问网站的https流量,抗封锁识别最强。(需要域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3"></TextBlock>
|
||||||
<RadioButton x:Name="RadioButtonWebSocketTLSselfSigned" Content="WebSocket+TLS(自签证书)" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="4" Checked="RadioButtonWebSocketTLSselfSigned_Checked"></RadioButton>
|
<RadioButton x:Name="RadioButtonWebSocketTLSselfSigned" Content="WebSocket+TLS(自签证书)" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="4" Checked="RadioButtonWebSocketTLSselfSigned_Checked"></RadioButton>
|
||||||
<TextBlock Text="数据加密传输,传输协议使用WebSocket,启用TLS,将被识别为TLS流量。(无需域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="数据加密传输,传输协议使用WebSocket,启用TLS,将被识别为TLS流量。(无需域名)" TextWrapping="Wrap" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="3"></TextBlock>
|
||||||
<TextBlock Text="Shadowrocket (ios)需要手动打开“允许不安全”选项" TextWrapping="Wrap" Grid.Column="4" Grid.Row="4" ></TextBlock>
|
<TextBlock Text="Shadowrocket (ios)需要手动打开“允许不安全”选项" TextWrapping="Wrap" Grid.Column="4" Grid.Row="4" ></TextBlock>
|
||||||
|
@ -146,7 +148,7 @@
|
||||||
<RadioButton x:Name="RadioButtonHTTP2" Content="HTTP2" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="1" Checked="RadioButtonHTTP2_Checked"></RadioButton>
|
<RadioButton x:Name="RadioButtonHTTP2" Content="HTTP2" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="1" Checked="RadioButtonHTTP2_Checked"></RadioButton>
|
||||||
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,需要域名" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,需要域名" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="3"></TextBlock>
|
||||||
<RadioButton x:Name="RadioButtonHTTP2Web" Content="HTTP2+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="2" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
<RadioButton x:Name="RadioButtonHTTP2Web" Content="HTTP2+TLS+Web" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="2" Checked="RadioButtonWebSocketTLS2Web_Checked"></RadioButton>
|
||||||
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,增加伪装网站,需要域名" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,使用Caddy做前置,需要域名" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3"></TextBlock>
|
||||||
<RadioButton x:Name="RadioButtonHTTP2selfSigned" Content="HTTP2(自签证书)" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="3" Checked="RadioButtonWebSocketTLSselfSigned_Checked"></RadioButton>
|
<RadioButton x:Name="RadioButtonHTTP2selfSigned" Content="HTTP2(自签证书)" GroupName="TemplateGroup" Grid.Column="0" Grid.Row="3" Checked="RadioButtonWebSocketTLSselfSigned_Checked"></RadioButton>
|
||||||
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,可以不需要域名。" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3"></TextBlock>
|
<TextBlock Text="基于 HTTP/2 的传输方式。它完整按照 HTTP/2 标准实现,可以不需要域名。" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3"></TextBlock>
|
||||||
<TextBlock Text="Shadowrocket (ios)需要手动打开“允许不安全”选项" TextWrapping="Wrap" Grid.Column="4" Grid.Row="3" ></TextBlock>
|
<TextBlock Text="Shadowrocket (ios)需要手动打开“允许不安全”选项" TextWrapping="Wrap" Grid.Column="4" Grid.Row="3" ></TextBlock>
|
||||||
|
@ -257,7 +259,7 @@
|
||||||
<TextBlock x:Name="TextBlockQuicUUID" Text="mKCP/QUIC密钥" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="1"></TextBlock>
|
<TextBlock x:Name="TextBlockQuicUUID" Text="mKCP/QUIC密钥" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="1"></TextBlock>
|
||||||
<TextBox x:Name="TextBoxQuicUUID" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
<TextBox x:Name="TextBoxQuicUUID" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
||||||
<Button x:Name="ButtonQuicUUID" Content="更新" Grid.Column="4" Grid.Row="2" Margin="2" Click="ButtonQuicUUID_Click"></Button>
|
<Button x:Name="ButtonQuicUUID" Content="更新" Grid.Column="4" Grid.Row="2" Margin="2" Click="ButtonQuicUUID_Click"></Button>
|
||||||
<TextBlock Text="启用mKCP密钥,可增强抗识别,删除留空则禁用,要求版本4.24.2以上" TextWrapping="Wrap" Grid.Column="5" Grid.Row="2" Grid.ColumnSpan="2"></TextBlock>
|
<TextBlock x:Name="TextBlockMkcpUUID" Text="启用mKCP密钥,可增强抗识别,删除留空则禁用,要求版本4.24.2以上" TextWrapping="Wrap" Grid.Column="5" Grid.Row="2" Grid.ColumnSpan="2"></TextBlock>
|
||||||
|
|
||||||
<TextBlock x:Name="TextBlockPath" Text="路径:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="1"></TextBlock>
|
<TextBlock x:Name="TextBlockPath" Text="路径:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="1"></TextBlock>
|
||||||
<TextBox x:Name="TextBoxPath" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
<TextBox x:Name="TextBoxPath" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
||||||
|
@ -265,8 +267,8 @@
|
||||||
<TextBlock x:Name="TextBlockDomain" Text="域名:" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="1"></TextBlock>
|
<TextBlock x:Name="TextBlockDomain" Text="域名:" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="1"></TextBlock>
|
||||||
<TextBox x:Name="TextBoxDomain" Style="{StaticResource TitleText}" Tag="不可为空" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
<TextBox x:Name="TextBoxDomain" Style="{StaticResource TitleText}" Tag="不可为空" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
||||||
<Button x:Name="ButtonDomain" Content="检测" Visibility="Collapsed" Grid.Column="4" Grid.Row="4" Margin="2" Click="ButtonDomain_Click"></Button>
|
<Button x:Name="ButtonDomain" Content="检测" Visibility="Collapsed" Grid.Column="4" Grid.Row="4" Margin="2" Click="ButtonDomain_Click"></Button>
|
||||||
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="1"></TextBlock>
|
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="1" Visibility="Hidden"></TextBlock>
|
||||||
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="3" Margin="3"></TextBox>
|
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="3" Margin="3" Visibility="Hidden"></TextBox>
|
||||||
|
|
||||||
|
|
||||||
<Button x:Name="ButtondDecide" Content="确定" Grid.Column="1" Grid.Row="6" Margin="0" Click="ButtondDecide_Click"></Button>
|
<Button x:Name="ButtondDecide" Content="确定" Grid.Column="1" Grid.Row="6" Margin="0" Click="ButtondDecide_Click"></Button>
|
||||||
|
|
|
@ -171,7 +171,7 @@ namespace ProxySU
|
||||||
|
|
||||||
}
|
}
|
||||||
//http2+TLS+Web模式被选中
|
//http2+TLS+Web模式被选中
|
||||||
else if (RadioButtonHTTP2Web.IsChecked == true)
|
else if (RadioButtonHTTP2Web.IsChecked == true || RadioButtonHTTP2WebHot.IsChecked == true)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(TextBoxDomain.Text.ToString()) == true)
|
if (string.IsNullOrEmpty(TextBoxDomain.Text.ToString()) == true)
|
||||||
{
|
{
|
||||||
|
@ -352,6 +352,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//隐藏Path
|
//隐藏Path
|
||||||
TextBlockPath.Visibility = Visibility.Collapsed;
|
TextBlockPath.Visibility = Visibility.Collapsed;
|
||||||
TextBoxPath.Visibility = Visibility.Collapsed;
|
TextBoxPath.Visibility = Visibility.Collapsed;
|
||||||
|
@ -392,6 +393,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//隐藏伪装网站
|
//隐藏伪装网站
|
||||||
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
||||||
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
@ -417,6 +419,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//隐藏伪装网站
|
//隐藏伪装网站
|
||||||
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
||||||
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
@ -442,6 +445,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//隐藏伪装网站
|
//隐藏伪装网站
|
||||||
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
||||||
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
@ -470,9 +474,13 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//显示伪装网站
|
//显示伪装网站
|
||||||
TextBlockMaskSites.Visibility = Visibility.Visible;
|
//TextBlockMaskSites.Visibility = Visibility.Visible;
|
||||||
TextBoxMaskSites.Visibility = Visibility.Visible;
|
//TextBoxMaskSites.Visibility = Visibility.Visible;
|
||||||
|
//隐藏伪装网站
|
||||||
|
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
|
||||||
Guid uuid = Guid.NewGuid();
|
Guid uuid = Guid.NewGuid();
|
||||||
TextBoxNewUUID.Text = uuid.ToString();
|
TextBoxNewUUID.Text = uuid.ToString();
|
||||||
|
@ -499,6 +507,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//隐藏伪装网站
|
//隐藏伪装网站
|
||||||
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
||||||
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
@ -527,6 +536,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
TextBlockQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
TextBoxQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
ButtonQuicUUID.Visibility = Visibility.Collapsed;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Collapsed;
|
||||||
//隐藏伪装网站
|
//隐藏伪装网站
|
||||||
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
TextBlockMaskSites.Visibility = Visibility.Collapsed;
|
||||||
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
TextBoxMaskSites.Visibility = Visibility.Collapsed;
|
||||||
|
@ -542,6 +552,7 @@ namespace ProxySU
|
||||||
TextBlockQuicUUID.Visibility = Visibility.Visible;
|
TextBlockQuicUUID.Visibility = Visibility.Visible;
|
||||||
TextBoxQuicUUID.Visibility = Visibility.Visible;
|
TextBoxQuicUUID.Visibility = Visibility.Visible;
|
||||||
ButtonQuicUUID.Visibility = Visibility.Visible;
|
ButtonQuicUUID.Visibility = Visibility.Visible;
|
||||||
|
TextBlockMkcpUUID.Visibility = Visibility.Visible;
|
||||||
//隐藏Path
|
//隐藏Path
|
||||||
TextBlockPath.Visibility = Visibility.Collapsed;
|
TextBlockPath.Visibility = Visibility.Collapsed;
|
||||||
TextBoxPath.Visibility = Visibility.Collapsed;
|
TextBoxPath.Visibility = Visibility.Collapsed;
|
||||||
|
|
|
@ -93,8 +93,8 @@
|
||||||
<TextBox x:Name="TextBoxPath" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="1" Margin="5"></TextBox>
|
<TextBox x:Name="TextBoxPath" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="1" Margin="5"></TextBox>
|
||||||
<Button x:Name="ButtonPath" Content="随机" Grid.Column="2" Grid.Row="2" Margin="2" Click="ButtonPath_Click"></Button>
|
<Button x:Name="ButtonPath" Content="随机" Grid.Column="2" Grid.Row="2" Margin="2" Click="ButtonPath_Click"></Button>
|
||||||
|
|
||||||
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2"></TextBlock>
|
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2" Visibility="Hidden"></TextBlock>
|
||||||
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="3" Margin="5"></TextBox>
|
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="3" Margin="5" Visibility="Hidden"></TextBox>
|
||||||
<Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
|
<Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition></ColumnDefinition>
|
<ColumnDefinition></ColumnDefinition>
|
||||||
|
|
|
@ -83,8 +83,8 @@
|
||||||
<TextBox x:Name="TextBoxNewUUID" Grid.Column="1" Grid.Row="1" Margin="3"></TextBox>
|
<TextBox x:Name="TextBoxNewUUID" Grid.Column="1" Grid.Row="1" Margin="3"></TextBox>
|
||||||
<Button x:Name="ButtonNewUUID" Content="更新" Grid.Column="2" Grid.Row="1" Margin="3" Click="ButtonNewUUID_Click"></Button>
|
<Button x:Name="ButtonNewUUID" Content="更新" Grid.Column="2" Grid.Row="1" Margin="3" Click="ButtonNewUUID_Click"></Button>
|
||||||
<TextBlock Text="使用已有密码,直接粘贴到框中" TextWrapping="Wrap" Grid.Column="3" Grid.Row="1"></TextBlock>
|
<TextBlock Text="使用已有密码,直接粘贴到框中" TextWrapping="Wrap" Grid.Column="3" Grid.Row="1"></TextBlock>
|
||||||
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2"></TextBlock>
|
<TextBlock x:Name="TextBlockMaskSites" Text="伪装网站:" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2" Visibility="Hidden"></TextBlock>
|
||||||
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="3" Margin="3"></TextBox>
|
<TextBox x:Name="TextBoxMaskSites" Style="{StaticResource TitleText}" Tag="设置此项可增加代理的隐蔽(可为空)" Grid.Column="1" Grid.Row="3" Margin="3" Visibility="Hidden"></TextBox>
|
||||||
<Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
|
<Grid Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition></ColumnDefinition>
|
<ColumnDefinition></ColumnDefinition>
|
||||||
|
|
Binary file not shown.
|
@ -1,16 +1,16 @@
|
||||||
##domain## {
|
##domain## {
|
||||||
root * /usr/share/caddy
|
root * /usr/share/caddy
|
||||||
file_server
|
file_server
|
||||||
tls {
|
tls {
|
||||||
protocols tls1.2 tls1.3
|
protocols tls1.2 tls1.3
|
||||||
ciphers TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
|
ciphers TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
|
||||||
curves x25519
|
curves x25519
|
||||||
}
|
}
|
||||||
@v2ray_websocket {
|
@v2ray_websocket {
|
||||||
path ##path##
|
path ##path##
|
||||||
header Connection *Upgrade*
|
header Connection *Upgrade*
|
||||||
header Upgrade websocket
|
header Upgrade websocket
|
||||||
}
|
}
|
||||||
reverse_proxy @v2ray_websocket localhost:10000
|
reverse_proxy @v2ray_websocket localhost:10000
|
||||||
##sites##
|
##sites##
|
||||||
}
|
}
|
|
@ -4,110 +4,15 @@
|
||||||
"local_port": "",
|
"local_port": "",
|
||||||
"remote_addr": "",
|
"remote_addr": "",
|
||||||
"remote_port": "",
|
"remote_port": "",
|
||||||
"log_level": 1,
|
|
||||||
"log_file": "",
|
|
||||||
"password": [
|
"password": [
|
||||||
""
|
""
|
||||||
],
|
]
|
||||||
"buffer_size": 32,
|
|
||||||
"dns": [],
|
|
||||||
"disable_http_check": false,
|
|
||||||
"ssl": {
|
"ssl": {
|
||||||
"verify": true,
|
|
||||||
"verify_hostname": true,
|
|
||||||
"cert": "",
|
"cert": "",
|
||||||
"key": "",
|
"key": ""
|
||||||
"key_password": "",
|
|
||||||
"cipher": "",
|
|
||||||
"cipher_tls13": "",
|
|
||||||
"curves": "",
|
|
||||||
"prefer_server_cipher": false,
|
|
||||||
"sni": "",
|
|
||||||
"alpn": [
|
|
||||||
"http/1.1"
|
|
||||||
],
|
|
||||||
"session_ticket": true,
|
|
||||||
"reuse_session": true,
|
|
||||||
"plain_http_response": "",
|
|
||||||
"fallback_port": 0,
|
|
||||||
"fingerprint": "firefox",
|
|
||||||
"serve_plain_text": false
|
|
||||||
},
|
|
||||||
"tcp": {
|
|
||||||
"no_delay": true,
|
|
||||||
"keep_alive": true,
|
|
||||||
"reuse_port": false,
|
|
||||||
"prefer_ipv4": false,
|
|
||||||
"fast_open": false,
|
|
||||||
"fast_open_qlen": 20
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": false,
|
|
||||||
"concurrency": 8,
|
|
||||||
"idle_timeout": 60
|
|
||||||
},
|
|
||||||
"router": {
|
|
||||||
"enabled": false,
|
|
||||||
"bypass": [],
|
|
||||||
"proxy": [],
|
|
||||||
"block": [],
|
|
||||||
"default_policy": "proxy",
|
|
||||||
"domain_strategy": "as_is",
|
|
||||||
"geoip": "./geoip.dat",
|
|
||||||
"geosite": "./geosite.dat"
|
|
||||||
},
|
},
|
||||||
"websocket": {
|
"websocket": {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"path": "",
|
"path": ""
|
||||||
"hostname": "",
|
|
||||||
"obfuscation_password": "",
|
|
||||||
"double_tls": true,
|
|
||||||
"ssl": {
|
|
||||||
"verify": true,
|
|
||||||
"verify_hostname": true,
|
|
||||||
"cert": "",
|
|
||||||
"key": "",
|
|
||||||
"key_password": "",
|
|
||||||
"prefer_server_cipher": false,
|
|
||||||
"sni": "",
|
|
||||||
"session_ticket": true,
|
|
||||||
"reuse_session": true,
|
|
||||||
"plain_http_response": "",
|
|
||||||
"key_log": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"forward_proxy": {
|
|
||||||
"enabled": false,
|
|
||||||
"proxy_addr": "",
|
|
||||||
"proxy_port": 0,
|
|
||||||
"username": "",
|
|
||||||
"password": ""
|
|
||||||
},
|
|
||||||
"mysql": {
|
|
||||||
"enabled": false,
|
|
||||||
"server_addr": "localhost",
|
|
||||||
"server_port": 3306,
|
|
||||||
"database": "",
|
|
||||||
"username": "",
|
|
||||||
"password": "",
|
|
||||||
"check_rate": 60
|
|
||||||
},
|
|
||||||
"redis": {
|
|
||||||
"enabled": false,
|
|
||||||
"server_addr": "localhost",
|
|
||||||
"server_port": 6379,
|
|
||||||
"password": ""
|
|
||||||
},
|
|
||||||
"api": {
|
|
||||||
"enabled": false,
|
|
||||||
"api_addr": "",
|
|
||||||
"api_port": 0,
|
|
||||||
"api_tls": false,
|
|
||||||
"ssl": {
|
|
||||||
"cert": "",
|
|
||||||
"key": "",
|
|
||||||
"key_password": "",
|
|
||||||
"client_cert": []
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,5 @@
|
||||||
##domain## {
|
##domain## {
|
||||||
log stdout
|
root * /usr/share/caddy
|
||||||
errors stderr
|
file_server
|
||||||
root /var/www
|
##sites##
|
||||||
tls off
|
|
||||||
##sites##
|
|
||||||
}
|
}
|
|
@ -12,7 +12,8 @@
|
||||||
"verify": true,
|
"verify": true,
|
||||||
"verify_hostname": true,
|
"verify_hostname": true,
|
||||||
"cert": "",
|
"cert": "",
|
||||||
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:RSA-AES128-GCM-SHA256:RSA-AES256-GCM-SHA384:RSA-AES128-SHA:RSA-AES256-SHA:RSA-3DES-EDE-SHA",
|
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:AES128-SHA:AES256-SHA:DES-CBC3-SHA",
|
||||||
|
"cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384",
|
||||||
"sni": "",
|
"sni": "",
|
||||||
"alpn": [
|
"alpn": [
|
||||||
"h2",
|
"h2",
|
||||||
|
@ -25,6 +26,7 @@
|
||||||
"tcp": {
|
"tcp": {
|
||||||
"no_delay": true,
|
"no_delay": true,
|
||||||
"keep_alive": true,
|
"keep_alive": true,
|
||||||
|
"reuse_port": false,
|
||||||
"fast_open": false,
|
"fast_open": false,
|
||||||
"fast_open_qlen": 20
|
"fast_open_qlen": 20
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,11 +12,15 @@
|
||||||
"cert": "/usr/local/etc/trojan/trojan_ssl.crt",
|
"cert": "/usr/local/etc/trojan/trojan_ssl.crt",
|
||||||
"key": "/usr/local/etc/trojan/trojan_ssl.key",
|
"key": "/usr/local/etc/trojan/trojan_ssl.key",
|
||||||
"key_password": "",
|
"key_password": "",
|
||||||
"cipher": "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256",
|
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384",
|
||||||
|
"cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384",
|
||||||
"prefer_server_cipher": true,
|
"prefer_server_cipher": true,
|
||||||
"alpn": [
|
"alpn": [
|
||||||
"http/1.1"
|
"http/1.1"
|
||||||
],
|
],
|
||||||
|
"alpn_port_override": {
|
||||||
|
"h2": 81
|
||||||
|
},
|
||||||
"reuse_session": true,
|
"reuse_session": true,
|
||||||
"session_ticket": false,
|
"session_ticket": false,
|
||||||
"session_timeout": 600,
|
"session_timeout": 600,
|
||||||
|
@ -28,6 +32,7 @@
|
||||||
"prefer_ipv4": false,
|
"prefer_ipv4": false,
|
||||||
"no_delay": true,
|
"no_delay": true,
|
||||||
"keep_alive": true,
|
"keep_alive": true,
|
||||||
|
"reuse_port": false,
|
||||||
"fast_open": false,
|
"fast_open": false,
|
||||||
"fast_open_qlen": 20
|
"fast_open_qlen": 20
|
||||||
},
|
},
|
||||||
|
@ -37,6 +42,9 @@
|
||||||
"server_port": 3306,
|
"server_port": 3306,
|
||||||
"database": "trojan",
|
"database": "trojan",
|
||||||
"username": "trojan",
|
"username": "trojan",
|
||||||
"password": ""
|
"password": "",
|
||||||
|
"key": "",
|
||||||
|
"cert": "",
|
||||||
|
"ca": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue