cmd/tailscale: add tailnet info to status output

Updates #14375

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris 2024-12-12 10:33:13 -08:00
parent 716cb37256
commit 2bfaa4a287

View File

@ -231,6 +231,12 @@ func runStatus(ctx context.Context, args []string) error {
outln()
printf("# To see the full list of exit nodes, including location-based exit nodes, run `tailscale exit-node list` \n")
}
outln()
printf("# Tailnet:\n")
printf("# - Name: %s\n", st.CurrentTailnet.Name)
printf("# - MagicDNS Suffix: %s\n", st.CurrentTailnet.MagicDNSSuffix)
if len(st.Health) > 0 {
outln()
printHealth()