1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-25 22:56:09 +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>
/// 安装证书 /// 安装证书
/// </summary> /// </summary>
public void InstallCertToXray() public void InstallCertToXray(bool restartXray = false)
{ {
EnsureRootAuth(); EnsureRootAuth();
EnsureSystemEnv(); EnsureSystemEnv();
@ -173,6 +173,7 @@ namespace ProxySuper.Core.Services
keyName: "xray_ssl.key"); keyName: "xray_ssl.key");
WriteOutput("************ 安装证书完成 ************"); WriteOutput("************ 安装证书完成 ************");
RunCmd("systemctl restart xray");
} }
/// <summary> /// <summary>

View File

@ -166,7 +166,7 @@ namespace ProxySuper.WPF.Views
private void InstallCert(object sender, RoutedEventArgs e) 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) private void UninstallXray(object sender, RoutedEventArgs e)