diff --git a/shadowsocks-csharp/Controller/ShadowsocksController.cs b/shadowsocks-csharp/Controller/ShadowsocksController.cs index 113242a7..3beea8ed 100755 --- a/shadowsocks-csharp/Controller/ShadowsocksController.cs +++ b/shadowsocks-csharp/Controller/ShadowsocksController.cs @@ -137,6 +137,7 @@ namespace Shadowsocks.Controller public void Stop() { + Console.WriteLine("Stop"); if (stopped) { return; @@ -183,6 +184,7 @@ 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(); @@ -257,6 +259,7 @@ 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 c8cc6f8d..0b022f8a 100755 --- a/shadowsocks-csharp/Controller/SystemProxy.cs +++ b/shadowsocks-csharp/Controller/SystemProxy.cs @@ -60,14 +60,19 @@ 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) {