refactor: Add IServerController.Server and use in ModeControllers

This commit is contained in:
ChsBuffer
2020-10-15 19:15:13 +08:00
parent 508e77759c
commit 918e260f3e
10 changed files with 25 additions and 16 deletions

View File

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