From 6cecd28cb849aae074f2f162ed504da55f13bbc9 Mon Sep 17 00:00:00 2001 From: Student Main Date: Sun, 22 Dec 2019 09:18:16 +0800 Subject: [PATCH] fix #2739 --- shadowsocks-csharp/Controller/Service/PACServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {