feat: add ChildProcessTracker

This commit is contained in:
ChsBuffer
2020-10-26 17:36:50 +08:00
parent c774122fdb
commit 52ac05ee17
3 changed files with 171 additions and 2 deletions

View File

@@ -31,7 +31,10 @@ namespace Netch.Controllers
try
{
pPrivoxyController.Start(MainController.ServerController.Server, mode);
if (pPrivoxyController.Start(MainController.ServerController.Server, mode))
{
ChildProcessTracker.AddProcess(pPrivoxyController.Instance);
}
if (mode.Type == 3) NativeMethods.SetGlobal($"127.0.0.1:{Global.Settings.HTTPLocalPort}", IEProxyExceptions);
}