1.1.3 -> 1.1.4 第78次更新

This commit is contained in:
Space Time 2024-12-18 23:41:05 +08:00
parent c7efd8df68
commit 56185d2750

View File

@ -309,6 +309,8 @@ public partial class MainWin : Window
NginxCleaner.Clean(); NginxCleaner.Clean();
NginxHttpPort = 80;
NginxHttpsPort = 443;
NginxConfWatcher_Changed(null!, null!); NginxConfWatcher_Changed(null!, null!);
} }
} }
@ -373,13 +375,16 @@ public partial class MainWin : Window
MainPres.IsMihomoIniting = false; MainPres.IsMihomoIniting = false;
} }
else else
{
foreach (Process mihomoProcess in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(MainConst.MihomoPath))) foreach (Process mihomoProcess in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(MainConst.MihomoPath)))
{ {
mihomoProcess.Kill(); mihomoProcess.Kill();
await mihomoProcess.WaitForExitAsync(); await mihomoProcess.WaitForExitAsync();
MihomoConfWatcher_Changed(null!, null!);
} }
MihomoMixedPort = 7880;
MihomoConfWatcher_Changed(null!, null!);
}
} }
private void EditHostButton_Click(object sender, RoutedEventArgs e) private void EditHostButton_Click(object sender, RoutedEventArgs e)