diff --git a/shadowsocks-csharp/Controller/Service/PACServer.cs b/shadowsocks-csharp/Controller/Service/PACServer.cs index 9a9af528..7833e01a 100644 --- a/shadowsocks-csharp/Controller/Service/PACServer.cs +++ b/shadowsocks-csharp/Controller/Service/PACServer.cs @@ -82,7 +82,7 @@ namespace Shadowsocks.Controller string request = Encoding.UTF8.GetString(firstPacket, 0, length); string[] lines = request.Split('\r', '\n'); bool hostMatch = false, pathMatch = false, useSocks = false; - bool secretMatch = _config.secureLocalPac; + bool secretMatch = !_config.secureLocalPac; if (lines.Length < 2) // need at lease RequestLine + Host {