private void UpdateSystemProxy() { if (_config.enabled) { SystemProxy.Enable(); } else { SystemProxy.Disable(); } }
public void Stop() { if (stopped) { return; } stopped = true; local.Stop(); polipoRunner.Stop(); if (_config.enabled) { SystemProxy.Disable(); } }
private void UpdateSystemProxy() { if (_config.enabled) { SystemProxy.Enable(_config.global); _systemProxyIsDirty = true; } else { // only switch it off if we have switched it on if (_systemProxyIsDirty) { SystemProxy.Disable(); _systemProxyIsDirty = false; } } }
public void Stop() { if (stopped) { return; } stopped = true; if (local != null) { local.Stop(); } if (polipoRunner != null) { polipoRunner.Stop(); } if (_config.enabled) { SystemProxy.Disable(); } }