cmd/tailscale/cli: display currently active exit node in tailscale status.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-02-05 13:07:48 -08:00
committed by Dave Anderson
parent 6064b6ff47
commit a046b48593
3 changed files with 11 additions and 1 deletions

View File

@@ -234,6 +234,7 @@ func (b *LocalBackend) UpdateStatus(sb *ipnstate.StatusBuilder) {
Created: p.Created,
LastSeen: lastSeen,
ShareeNode: p.Hostinfo.ShareeNode,
ExitNode: p.StableID != "" && p.StableID == b.prefs.ExitNodeID,
})
}
}