Procházet zdrojové kódy

Fixes #54. Do not dump WinSW environment variables to the Event log

Oleg Nenashev před 8 roky
rodič
revize
d702f9eefe
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/Core/ServiceWrapper/Main.cs

+ 4 - 1
src/Core/ServiceWrapper/Main.cs

@@ -210,10 +210,13 @@ namespace winsw
         protected override void OnStart(string[] _)
         {
             _envs = _descriptor.EnvironmentVariables;
+            // TODO: Disabled according to security concerns in https://github.com/kohsuke/winsw/issues/54
+            // Could be restored, but unlikely it's required in event logs at all
+            /**
             foreach (string key in _envs.Keys)
             {
                 LogEvent("envar " + key + '=' + _envs[key]);
-            }
+            }*/
 
             HandleFileCopies();