mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 04:42:09 +08:00
1.1.4 -> 1.1.5 第6次更新
This commit is contained in:
parent
592f871778
commit
cf616b33a8
@ -26,6 +26,7 @@ internal abstract partial class MainConst : MainMultilangConst
|
||||
internal static string HostsConfStartMarker => $"# Cealing Nginx Start{Environment.NewLine}";
|
||||
internal static string HostsConfEndMarker => "# Cealing Nginx End";
|
||||
|
||||
internal static string ConginxPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "Cealing-Conginx.exe");
|
||||
internal static string NginxPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "Cealing-Nginx.exe");
|
||||
internal static string NginxConfPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "nginx.conf");
|
||||
internal static string NginxLogsPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "logs");
|
||||
@ -36,6 +37,7 @@ internal abstract partial class MainConst : MainMultilangConst
|
||||
internal static string NginxRootCertSubjectName => "CN=Cealing Cert Root";
|
||||
internal static string NginxChildCertSubjectName => "CN=Cealing Cert Child";
|
||||
|
||||
internal static string ComihomoPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "Cealing-Comihomo.exe");
|
||||
internal static string MihomoPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "Cealing-Mihomo.exe");
|
||||
internal static string MihomoConfPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "config.yaml");
|
||||
internal static string[] MihomoNameServers => ["https://doh.apad.pro/dns-query", "https://ns.net.kg/dns-query"];
|
||||
|
9
Proces/ComihomoProc.cs
Normal file
9
Proces/ComihomoProc.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using Sheas_Cealer.Consts;
|
||||
using Sheas_Core;
|
||||
|
||||
namespace Sheas_Cealer.Proces;
|
||||
|
||||
internal class ComihomoProc : Proc
|
||||
{
|
||||
internal ComihomoProc() : base(MainConst.ComihomoPath) { }
|
||||
}
|
13
Proces/ConginxProc.cs
Normal file
13
Proces/ConginxProc.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using Sheas_Cealer.Consts;
|
||||
using Sheas_Cealer.Utils;
|
||||
using Sheas_Core;
|
||||
using System;
|
||||
|
||||
namespace Sheas_Cealer.Proces;
|
||||
|
||||
internal class ConginxProc : Proc
|
||||
{
|
||||
internal ConginxProc() : base(MainConst.ConginxPath) { }
|
||||
|
||||
protected override async void Process_Exited(object? sender, EventArgs e) => await NginxCleaner.Clean();
|
||||
}
|
Loading…
Reference in New Issue
Block a user