Skip to content

Commit 8b1cf27

Browse files
committed
Use upper case for the env variable
1 parent e68a510 commit 8b1cf27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static RemoteSessionNamedPipeServer()
500500
s_syncObject = new object();
501501

502502
// Unless opt-out, all PowerShell instances will start with the named-pipe listener created and running.
503-
IPCNamedPipeServerEnabled = !Utils.GetEnvironmentVariableAsBool(name: "POWERSHELL_Diagnostics_OPTOUT", defaultValue: false);
503+
IPCNamedPipeServerEnabled = !Utils.GetEnvironmentVariableAsBool(name: "POWERSHELL_DIAGNOSTICS_OPTOUT", defaultValue: false);
504504

505505
if (IPCNamedPipeServerEnabled)
506506
{

0 commit comments

Comments
 (0)