cmd/tailscale: do not show location based exit nodes in main view

This change stops us from clogging up the main UI view with location
based exit nodes, which can be in their hundreds. They will still appear
in the exit node UI.

Updates tailscale/tailscale#9438

Signed-off-by: Charlotte Brandhorst-Satzkorn <charlotte@tailscale.com>
catzkorn/notag
Charlotte Brandhorst-Satzkorn 10 months ago
parent 813ca8adea
commit e91dca074d

@ -560,6 +560,12 @@ func (ui *UI) layout(gtx layout.Context, sysIns system.Insets, state *clientStat
ui.showCopied(gtx, a)
}
}
if p.Peer.Hostinfo.Location() != nil && p.Peer.IsWireGuardOnly {
// If the peer has location information set and is a wireguard
// only peer then it should not be displayed in the main list.
return D{}
}
return ui.layoutPeer(gtx, sysIns, p, userID, clk)
}
}

Loading…
Cancel
Save