Fix default IPC port for IPC server, TCP client mode. (#2557)
authorJohan Lorensson <lateralusx.github@gmail.com>
Thu, 9 Sep 2021 05:56:07 +0000 (07:56 +0200)
committerGitHub <noreply@github.com>
Thu, 9 Sep 2021 05:56:07 +0000 (07:56 +0200)
src/Tools/dotnet-dsrouter/DiagnosticsServerRouterCommands.cs

index 038b2eb5a8b004320f1b80c4e7dab3f9bb5d4005..0563cc3b4adfebd3bfc12bfd62d63927ec662825 100644 (file)
@@ -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)