From 09e1a4386dbe46e6f61284608fc0768095f3f027 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 24 Feb 2023 11:11:01 +0800 Subject: [PATCH] fix pac bug --- v2rayN/PacLib/PacHandler.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/v2rayN/PacLib/PacHandler.cs b/v2rayN/PacLib/PacHandler.cs index 819a94a8..55488862 100644 --- a/v2rayN/PacLib/PacHandler.cs +++ b/v2rayN/PacLib/PacHandler.cs @@ -20,14 +20,8 @@ public class PacHandler public static void Start(string configPath, int httpPort, int pacPort) { - if (configPath == _configPath - && httpPort == _httpPort - && pacPort == _pacPort - && _isRunning) - { - _needRestart = false; - } - + _needRestart = (configPath != _configPath || httpPort != _httpPort || pacPort != _pacPort || !_isRunning); + _configPath = configPath; _httpPort = httpPort; _pacPort = pacPort;