From 21ea2d84f94a18cc95f0f461a5e41623aacc83d5 Mon Sep 17 00:00:00 2001 From: Johan Lorensson Date: Thu, 9 Sep 2021 07:56:07 +0200 Subject: [PATCH] Fix default IPC port for IPC server, TCP client mode. (#2557) --- src/Tools/dotnet-dsrouter/DiagnosticsServerRouterCommands.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Tools/dotnet-dsrouter/DiagnosticsServerRouterCommands.cs b/src/Tools/dotnet-dsrouter/DiagnosticsServerRouterCommands.cs index 038b2eb5a..0563cc3b4 100644 --- a/src/Tools/dotnet-dsrouter/DiagnosticsServerRouterCommands.cs +++ b/src/Tools/dotnet-dsrouter/DiagnosticsServerRouterCommands.cs @@ -208,6 +208,9 @@ namespace Microsoft.Diagnostics.Tools.DiagnosticsServerRouter } } + if (string.IsNullOrEmpty(ipcServer)) + ipcServer = GetDefaultIpcServerPath(logger); + var routerTask = DiagnosticsServerRouterRunner.runIpcServerTcpClientRouter(linkedCancelToken.Token, ipcServer, tcpClient, runtimeTimeout == Timeout.Infinite ? runtimeTimeout : runtimeTimeout * 1000, tcpClientRouterFactory, logger, Launcher); while (!linkedCancelToken.IsCancellationRequested) -- 2.34.1