From cb94d643954b6e42dd0a85ecba2a551bd03c85e8 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Sat, 11 Jan 2025 19:35:32 +0800 Subject: [PATCH] Bug fix --- v2rayN/ServiceLib/Global.cs | 2 +- v2rayN/ServiceLib/Handler/SysProxy/SysProxyHandler.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/Global.cs b/v2rayN/ServiceLib/Global.cs index 5135c15a..da4be1a4 100644 --- a/v2rayN/ServiceLib/Global.cs +++ b/v2rayN/ServiceLib/Global.cs @@ -69,7 +69,7 @@ public const string AutoRunName = "v2rayNAutoRun"; public const string CustomIconName = "v2rayN.ico"; public const string SystemProxyExceptionsWindows = "localhost;127.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;192.168.*"; - public const string SystemProxyExceptionsLinux = "localhost, 127.0.0.0/8, ::1"; + public const string SystemProxyExceptionsLinux = "localhost,127.0.0.0/8,::1"; public const string RoutingRuleComma = ""; public const string GrpcGunMode = "gun"; public const string GrpcMultiMode = "multi"; diff --git a/v2rayN/ServiceLib/Handler/SysProxy/SysProxyHandler.cs b/v2rayN/ServiceLib/Handler/SysProxy/SysProxyHandler.cs index 0d3e2ec1..99cc991a 100644 --- a/v2rayN/ServiceLib/Handler/SysProxy/SysProxyHandler.cs +++ b/v2rayN/ServiceLib/Handler/SysProxy/SysProxyHandler.cs @@ -16,7 +16,7 @@ try { var port = AppHandler.Instance.GetLocalPort(EInboundProtocol.socks); - var exceptions = config.SystemProxyItem.SystemProxyExceptions; + var exceptions = config.SystemProxyItem.SystemProxyExceptions.Replace(" ", ""); if (port <= 0) { return false; @@ -68,7 +68,7 @@ private static void GetWindowsProxyString(Config config, int port, out string strProxy, out string strExceptions) { - strExceptions = config.SystemProxyItem.SystemProxyExceptions; + strExceptions = config.SystemProxyItem.SystemProxyExceptions.Replace(" ", ""); if (config.SystemProxyItem.NotProxyLocalAddress) { strExceptions = $";{strExceptions}";