From b2dd2d97dd178401f185250aab22963afca41a01 Mon Sep 17 00:00:00 2001 From: database64128 Date: Thu, 5 Nov 2020 15:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A0=20No=20case=20conversion=20for=20S?= =?UTF-8?q?IP003=20environment=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Corrects the mistake in 127cb96 and fixes #3013 --- shadowsocks-csharp/Controller/Service/Sip003Plugin.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shadowsocks-csharp/Controller/Service/Sip003Plugin.cs b/shadowsocks-csharp/Controller/Service/Sip003Plugin.cs index 7024c648..c955c7b9 100644 --- a/shadowsocks-csharp/Controller/Service/Sip003Plugin.cs +++ b/shadowsocks-csharp/Controller/Service/Sip003Plugin.cs @@ -122,13 +122,12 @@ namespace Shadowsocks.Controller.Service public string ExpandEnvironmentVariables(string name, StringDictionary environmentVariables = null) { - name = name.ToLower(); // Expand the environment variables from the new process itself if (environmentVariables != null) { foreach(string key in environmentVariables.Keys) { - name = name.Replace($"%{key.ToLower()}%", environmentVariables[key]); + name = name.Replace($"%{key}%", environmentVariables[key]); } } // Also expand the environment variables from current main process (system)