From 0f042b9814a963527043e390acc127ad9017e096 Mon Sep 17 00:00:00 2001 From: Charlotte Brandhorst-Satzkorn <46385858+catzkorn@users.noreply.github.com> Date: Thu, 8 Feb 2024 14:29:01 -0800 Subject: [PATCH] cmd/tailscale/cli: fix exit node status output (#11076) This change fixes the format of tailscale status output when location based exit nodes are present. Fixes #11065 Signed-off-by: Charlotte Brandhorst-Satzkorn --- cmd/tailscale/cli/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tailscale/cli/status.go b/cmd/tailscale/cli/status.go index 31ce2220d..6655c1469 100644 --- a/cmd/tailscale/cli/status.go +++ b/cmd/tailscale/cli/status.go @@ -228,8 +228,8 @@ func runStatus(ctx context.Context, args []string) error { } Stdout.Write(buf.Bytes()) if locBasedExitNode { - println() - println("# To see the full list of exit nodes, including location-based exit nodes, run `tailscale exit-node list` \n") + outln() + printf("# To see the full list of exit nodes, including location-based exit nodes, run `tailscale exit-node list` \n") } if len(st.Health) > 0 { outln()