From cfb93a9ff27b7e60e3d3589ebdb06bbd54017f61 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Mon, 23 Sep 2019 22:02:20 +0800 Subject: [PATCH] Update PACServerHandle.cs --- v2rayN/v2rayN/HttpProxyHandler/PACServerHandle.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/HttpProxyHandler/PACServerHandle.cs b/v2rayN/v2rayN/HttpProxyHandler/PACServerHandle.cs index 30ec6da1..cfc3a549 100644 --- a/v2rayN/v2rayN/HttpProxyHandler/PACServerHandle.cs +++ b/v2rayN/v2rayN/HttpProxyHandler/PACServerHandle.cs @@ -17,6 +17,13 @@ namespace v2rayN.HttpProxyHandler { private static int pacPort = 0; private static HttpWebServer server; + public bool IsRunning + { + get + { + return (server != null && pacPort > 0); + } + } public static void Init(Config config) { @@ -68,7 +75,6 @@ namespace v2rayN.HttpProxyHandler return true; } - public static string SendResponse(string address) { try @@ -117,6 +123,7 @@ namespace v2rayN.HttpProxyHandler //} } + private static string GetPacList(string address) { var port = Global.sysAgentPort; @@ -144,5 +151,6 @@ namespace v2rayN.HttpProxyHandler } return "No pac content"; } + } }