mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-25 06:36:08 +03:00
fix xray port
This commit is contained in:
parent
f39c1e70ae
commit
bbc508557b
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user