mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.1 -> 1.1.2 第29次更新
This commit is contained in:
parent
57d3ede6db
commit
6ad9cb3c72
@ -194,6 +194,9 @@ public partial class MainWin : Window
|
||||
continue;
|
||||
|
||||
hostsAppendContent += $"127.0.0.1 {hostIncludeDomainWithoutWildcard.Split('^', 2)[0]}\n";
|
||||
|
||||
if (hostIncludeDomain.StartsWith('*'))
|
||||
hostsAppendContent += $"127.0.0.1 www.{hostIncludeDomainWithoutWildcard.Split('^', 2)[0]}\n";
|
||||
}
|
||||
|
||||
hostsAppendContent += "# Cealing Nginx End";
|
||||
@ -202,7 +205,7 @@ public partial class MainWin : Window
|
||||
|
||||
new NginxProc().ShellRun(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, @"-c nginx.conf");
|
||||
|
||||
await Task.Delay(2000);
|
||||
await Task.Delay(2500);
|
||||
|
||||
File.WriteAllText(Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, "nginx.conf"), ExtraConfs);
|
||||
ConfWatcher.EnableRaisingEvents = true;
|
||||
|
Loading…
Reference in New Issue
Block a user