From 33e06067ac0138ea7499a589a63118709db053b8 Mon Sep 17 00:00:00 2001 From: li3shiyi Date: Fri, 7 Aug 2015 18:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=A8=A1=E5=BC=8F=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=B0PAC=E6=A8=A1=E5=BC=8F=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=B8=85=E9=99=A4ProxyServer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shadowsocks-csharp/Controller/System/SystemProxy.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Controller/System/SystemProxy.cs b/shadowsocks-csharp/Controller/System/SystemProxy.cs index 3bdb737f..84a26d06 100644 --- a/shadowsocks-csharp/Controller/System/SystemProxy.cs +++ b/shadowsocks-csharp/Controller/System/SystemProxy.cs @@ -55,7 +55,9 @@ namespace Shadowsocks.Controller else pacUrl = "http://127.0.0.1:" + config.localPort.ToString() + "/pac?t=" + GetTimestamp(DateTime.Now); registry.SetValue("ProxyEnable", 0); - //registry.SetValue("ProxyServer", ""); //Unnecessary + var readProxyServer = registry.GetValue("ProxyServer"); + if (readProxyServer != null && readProxyServer.Equals("127.0.0.1:" + config.localPort.ToString())) + registry.SetValue("ProxyServer", ""); registry.SetValue("AutoConfigURL", pacUrl); } }