From 7668765879498850641c4dbba6d0d960b213d2ee Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Wed, 19 May 2021 18:14:27 -0300 Subject: [PATCH] Render onion address port too Fixes #4 --- src/dotnet-tor/TorCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet-tor/TorCommand.cs b/src/dotnet-tor/TorCommand.cs index 2d28cbb..e695f06 100644 --- a/src/dotnet-tor/TorCommand.cs +++ b/src/dotnet-tor/TorCommand.cs @@ -124,7 +124,7 @@ await File.AppendAllLinesAsync(configPath, new[] { var config = torConfig.GetSection("tor", service); var onion = await File.ReadAllTextAsync(hostName, cancellation); - AnsiConsole.MarkupLine($"[yellow]Service {service} ({config.GetString("service")}):[/] [lime]{onion.Trim()}[/]"); + AnsiConsole.MarkupLine($"[yellow]Service {service} ({config.GetString("service")}):[/] [lime]{onion.Trim()}:{config.GetNumber("port")}[/]"); } }