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:
parent
f39c1e70ae
commit
bbc508557b
@ -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>
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user