cmd/tailscale: don't render ShareeNode peers

Fixes tailscale/corp#11006

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
bradfitz/shared_user_dev
Brad Fitzpatrick 1 year ago
parent 0931e9b3ee
commit 95987dd50c

@ -1051,6 +1051,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())

Loading…
Cancel
Save