只有模式4(系统代理模式)设置系统代理

This commit is contained in:
ChsBuffer
2020-07-20 00:48:20 +08:00
parent b1c0990ca5
commit 27d68163a9

View File

@@ -44,7 +44,7 @@ namespace Netch.Controllers
pPrivoxyController.Start(server, mode);
}
if (mode.Type != 5) NativeMethods.SetGlobal($"127.0.0.1:{Global.Settings.HTTPLocalPort}", "<local>");
if (mode.Type == 3) NativeMethods.SetGlobal($"127.0.0.1:{Global.Settings.HTTPLocalPort}", "<local>");
}
catch (Exception e)
{