Skip to content

Commit

Permalink
revert part of shadowsocks#257
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Aug 18, 2015
1 parent ab38538 commit 05726cd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions shadowsocks-csharp/Controller/System/SystemProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,14 @@ public static void Update(Configuration config, bool forceDisable)
pacUrl = "http://127.0.0.1:" + config.localPort.ToString() + "/pac?t=" + GetTimestamp(DateTime.Now);
registry.SetValue("ProxyEnable", 0);
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);
}
}
else
{
registry.SetValue("ProxyEnable", 0);
if (global)
{
registry.SetValue("ProxyServer", "");
}
registry.SetValue("ProxyServer", "");
registry.SetValue("AutoConfigURL", "");
}
//Set AutoDetectProxy Off
Expand Down

0 comments on commit 05726cd

Please sign in to comment.