public void Disable() { PrivoxyRunner privoxyRunner = new PrivoxyRunner(); privoxyRunner.Stop(); privoxyRunner.DisableAutoStart(); SystemProxy.Update(false); }
public void Enable() { PrivoxyRunner privoxyRunner = new PrivoxyRunner(); privoxyRunner.Start(); privoxyRunner.AutoStart(); HostsChecker hostsChecker = new HostsChecker(); hostsChecker.Check(); SystemProxy.Update(true); }