From cc43a3d083e74c7a3f266370d9da59c547ef5740 Mon Sep 17 00:00:00 2001 From: git-720516 Date: Sun, 26 Jul 2015 17:17:55 +0800 Subject: [PATCH] Revert "debug system proxy" This reverts commit f33da19f06b6785e1eeae91376ae1802044dcbcf. --- shadowsocks-csharp/Controller/ShadowsocksController.cs | 3 --- shadowsocks-csharp/Controller/SystemProxy.cs | 5 ----- 2 files changed, 8 deletions(-) diff --git a/shadowsocks-csharp/Controller/ShadowsocksController.cs b/shadowsocks-csharp/Controller/ShadowsocksController.cs index 3beea8ed..113242a7 100755 --- a/shadowsocks-csharp/Controller/ShadowsocksController.cs +++ b/shadowsocks-csharp/Controller/ShadowsocksController.cs @@ -137,7 +137,6 @@ namespace Shadowsocks.Controller public void Stop() { - Console.WriteLine("Stop"); if (stopped) { return; @@ -184,7 +183,6 @@ namespace Shadowsocks.Controller protected void Reload() { - Console.WriteLine("Reload"); // some logic in configuration updated the config when saving, we need to read it again _config = Configuration.Load(); @@ -259,7 +257,6 @@ namespace Shadowsocks.Controller private void UpdateSystemProxy() { - Console.WriteLine("UpdateSystemProxy"); if (_config.enabled) { SystemProxy.Enable(_config.global); diff --git a/shadowsocks-csharp/Controller/SystemProxy.cs b/shadowsocks-csharp/Controller/SystemProxy.cs index 0b022f8a..c8cc6f8d 100755 --- a/shadowsocks-csharp/Controller/SystemProxy.cs +++ b/shadowsocks-csharp/Controller/SystemProxy.cs @@ -60,19 +60,14 @@ namespace Shadowsocks.Controller { try { - Console.WriteLine("Disable"); RegistryKey registry = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true); - Console.WriteLine("Disable1"); registry.SetValue("ProxyEnable", 0); registry.SetValue("ProxyServer", ""); registry.SetValue("AutoConfigURL", ""); - Console.WriteLine("Disable2"); SystemProxy.NotifyIE(); - Console.WriteLine("Disable3"); CopyProxySettingFromLan(); - Console.WriteLine("Disable4"); } catch (Exception e) {