mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.3 -> 1.1.4 第27次更新
This commit is contained in:
parent
e37ef64aca
commit
8178742f62
@ -29,6 +29,7 @@ internal partial class MainConst : MainMultilangConst
|
||||
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");
|
||||
internal static string NginxErrorLogsPath => Path.Combine(NginxLogsPath, "error.log");
|
||||
internal static string NginxTempPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "temp");
|
||||
internal static string NginxCertPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "Cealing-Cert.pem");
|
||||
internal static string NginxKeyPath => Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "Cealing-Key.pem");
|
||||
|
20
Consts/MainMultilangConst.Designer.cs
generated
20
Consts/MainMultilangConst.Designer.cs
generated
@ -151,7 +151,25 @@ namespace Sheas_Cealer.Consts {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Warning: The proxy core is under attack and cannot forge SNI. The SNI removal mode has been turned on urgently. Do you want to continue? 的本地化字符串。
|
||||
/// 查找类似 Mihomo failed to start 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string _LaunchMihomoErrorMsg {
|
||||
get {
|
||||
return ResourceManager.GetString("_LaunchMihomoErrorMsg", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Nginx failed to start, do you want to open the error log 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string _LaunchNginxErrorPrompt {
|
||||
get {
|
||||
return ResourceManager.GetString("_LaunchNginxErrorPrompt", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Warning: The proxy core is under attack and cannot ceal SNI. The SNI removal mode has been turned on urgently. Do you want to continue? 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string _LaunchNginxFlashingPrompt {
|
||||
get {
|
||||
|
@ -276,8 +276,14 @@
|
||||
<data name="_KillBrowserProcessPrompt" xml:space="preserve">
|
||||
<value>All processes of the selected browser will be closed before launching. Do you want to continue?</value>
|
||||
</data>
|
||||
<data name="_LaunchMihomoErrorMsg" xml:space="preserve">
|
||||
<value>Mihomo failed to start</value>
|
||||
</data>
|
||||
<data name="_LaunchNginxErrorPrompt" xml:space="preserve">
|
||||
<value>Nginx failed to start, do you want to open the error log</value>
|
||||
</data>
|
||||
<data name="_LaunchNginxFlashingPrompt" xml:space="preserve">
|
||||
<value>Warning: The proxy core is under attack and cannot forge SNI. The SNI removal mode has been turned on urgently. Do you want to continue?</value>
|
||||
<value>Warning: The proxy core is under attack and cannot ceal SNI. The SNI removal mode has been turned on urgently. Do you want to continue?</value>
|
||||
</data>
|
||||
<data name="_LaunchProxyPrompt" xml:space="preserve">
|
||||
<value>Please remember to come back and stop the proxy manually after use. Do you want to continue?</value>
|
||||
|
@ -276,6 +276,12 @@
|
||||
<data name="_KillBrowserProcessPrompt" xml:space="preserve">
|
||||
<value>启动前将关闭所选浏览器的所有进程,是否继续?</value>
|
||||
</data>
|
||||
<data name="_LaunchMihomoErrorMsg" xml:space="preserve">
|
||||
<value>Mihomo 启动失败</value>
|
||||
</data>
|
||||
<data name="_LaunchNginxErrorPrompt" xml:space="preserve">
|
||||
<value>Nginx 启动失败,是否打开错误日志</value>
|
||||
</data>
|
||||
<data name="_LaunchNginxFlashingPrompt" xml:space="preserve">
|
||||
<value>Warning: 代理核心正在遭受攻击,无法伪造 SNI,已紧急开启 SNI 拔除模式,是否继续?</value>
|
||||
</data>
|
||||
|
@ -272,7 +272,12 @@ public partial class MainWin : Window
|
||||
}
|
||||
|
||||
if (!MainPres.IsNginxRunning)
|
||||
{
|
||||
if (MessageBox.Show(MainConst._LaunchNginxErrorPrompt, string.Empty, MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
||||
Process.Start(new ProcessStartInfo(MainConst.NginxErrorLogsPath) { UseShellExecute = true });
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
File.WriteAllText(MainConst.NginxConfPath, ExtraNginxConfs);
|
||||
@ -334,7 +339,11 @@ public partial class MainWin : Window
|
||||
}
|
||||
|
||||
if (!MainPres.IsMihomoRunning)
|
||||
{
|
||||
MessageBox.Show(MainConst._LaunchMihomoErrorMsg);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
File.WriteAllText(MainConst.MihomoConfPath, ExtraMihomoConfs);
|
||||
@ -358,8 +367,7 @@ public partial class MainWin : Window
|
||||
if (!File.Exists(cealHostPath))
|
||||
File.Create(cealHostPath).Dispose();
|
||||
|
||||
ProcessStartInfo processStartInfo = new(cealHostPath) { UseShellExecute = true };
|
||||
Process.Start(processStartInfo);
|
||||
Process.Start(new ProcessStartInfo(cealHostPath) { UseShellExecute = true });
|
||||
}
|
||||
private void EditConfButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
@ -380,8 +388,7 @@ public partial class MainWin : Window
|
||||
File.Create(confPath).Dispose();
|
||||
}
|
||||
|
||||
ProcessStartInfo processStartInfo = new(confPath) { UseShellExecute = true };
|
||||
Process.Start(processStartInfo);
|
||||
Process.Start(new ProcessStartInfo(confPath) { UseShellExecute = true });
|
||||
}
|
||||
private async void UpdateUpstreamHostButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user