cmd/tailscale: don't render ShareeNode peers (#98)

Fixes tailscale/corp#11006

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
karilam/7875
Brad Fitzpatrick 1 year ago committed by GitHub
parent dc9c96278d
commit f44692addd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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())

Loading…
Cancel
Save