From f44692addd3feebf4db569cc1db0f956006edd6b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 26 Jun 2023 12:15:19 -0700 Subject: [PATCH] cmd/tailscale: don't render ShareeNode peers (#98) Fixes tailscale/corp#11006 Signed-off-by: Brad Fitzpatrick --- cmd/tailscale/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/tailscale/main.go b/cmd/tailscale/main.go index 0ae59db..8fd4677 100644 --- a/cmd/tailscale/main.go +++ b/cmd/tailscale/main.go @@ -1048,6 +1048,13 @@ func (a *App) updateState(act jni.Object, state *clientState) { users := make(map[tailcfg.UserID]struct{}) var uiPeers []UIPeer for _, p := range peers { + if p.Hostinfo.Valid() && p.Hostinfo.ShareeNode() { + // Don't show nodes that only exist in the netmap because they're + // owned by somebody the user shared a node with. We can't see their + // details (including their name) anyway, so there's nothing + // interesting to render. + continue + } if q := state.query; q != "" { // Filter peers according to search query. host := strings.ToLower(p.Hostinfo.Hostname())