Browse Source

Always use {}

tags/3.4.0
noisyfox 8 years ago
parent
commit
430137495c
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      shadowsocks-csharp/Controller/System/SystemProxy.cs

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

@@ -33,9 +33,14 @@ namespace Shadowsocks.Controller
{ {
string pacUrl; string pacUrl;
if (config.useOnlinePac && !config.pacUrl.IsNullOrEmpty()) if (config.useOnlinePac && !config.pacUrl.IsNullOrEmpty())
{
pacUrl = config.pacUrl; pacUrl = config.pacUrl;
}
else else
pacUrl = $"http://127.0.0.1:{config.localPort}/pac?t={GetTimestamp(DateTime.Now)}{pacSrv.PacSecret}";
{
pacUrl =
$"http://127.0.0.1:{config.localPort}/pac?t={GetTimestamp(DateTime.Now)}{pacSrv.PacSecret}";
}
Sysproxy.SetIEProxy(true, false, "", pacUrl); Sysproxy.SetIEProxy(true, false, "", pacUrl);
} }
} }


Loading…
Cancel
Save