Browse Source

revert part of #257

tags/2.5.5
clowwindy 9 years ago
parent
commit
05726cdb67
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      shadowsocks-csharp/Controller/System/SystemProxy.cs

+ 2
- 6
shadowsocks-csharp/Controller/System/SystemProxy.cs View File

@@ -56,18 +56,14 @@ namespace Shadowsocks.Controller
pacUrl = "http://127.0.0.1:" + config.localPort.ToString() + "/pac?t=" + GetTimestamp(DateTime.Now); pacUrl = "http://127.0.0.1:" + config.localPort.ToString() + "/pac?t=" + GetTimestamp(DateTime.Now);
registry.SetValue("ProxyEnable", 0); registry.SetValue("ProxyEnable", 0);
var readProxyServer = registry.GetValue("ProxyServer"); var readProxyServer = registry.GetValue("ProxyServer");
if (readProxyServer != null && readProxyServer.Equals("127.0.0.1:" + config.localPort.ToString()))
registry.SetValue("ProxyServer", "");
registry.SetValue("ProxyServer", "");
registry.SetValue("AutoConfigURL", pacUrl); registry.SetValue("AutoConfigURL", pacUrl);
} }
} }
else else
{ {
registry.SetValue("ProxyEnable", 0); registry.SetValue("ProxyEnable", 0);
if (global)
{
registry.SetValue("ProxyServer", "");
}
registry.SetValue("ProxyServer", "");
registry.SetValue("AutoConfigURL", ""); registry.SetValue("AutoConfigURL", "");
} }
//Set AutoDetectProxy Off //Set AutoDetectProxy Off


Loading…
Cancel
Save