1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-22 05:06:08 +03:00

fix xray port

This commit is contained in:
autumn 2021-08-04 10:57:15 +08:00
parent f39c1e70ae
commit bbc508557b
2 changed files with 3 additions and 2 deletions

View File

@ -163,7 +163,7 @@ namespace ProxySuper.Core.Services
/// <summary>
/// 安装证书
/// </summary>
public void InstallCertToXray()
public void InstallCertToXray(bool restartXray = false)
{
EnsureRootAuth();
EnsureSystemEnv();
@ -173,6 +173,7 @@ namespace ProxySuper.Core.Services
keyName: "xray_ssl.key");
WriteOutput("************ 安装证书完成 ************");
RunCmd("systemctl restart xray");
}
/// <summary>

View File

@ -166,7 +166,7 @@ namespace ProxySuper.WPF.Views
private void InstallCert(object sender, RoutedEventArgs e)
{
Task.Factory.StartNew(Project.InstallCertToXray);
Task.Factory.StartNew(() => Project.InstallCertToXray(restartXray: true));
}
private void UninstallXray(object sender, RoutedEventArgs e)