Browse Source

🔠 No case conversion for SIP003 environment variables

- Corrects the mistake in 127cb96 and fixes #3013
tags/4.3.2.0
database64128 3 years ago
parent
commit
b2dd2d97dd
No known key found for this signature in database GPG Key ID: 1CA27546BEDB8B01
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      shadowsocks-csharp/Controller/Service/Sip003Plugin.cs

+ 1
- 2
shadowsocks-csharp/Controller/Service/Sip003Plugin.cs View File

@@ -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)


Loading…
Cancel
Save