cmd/tailscale: do not show location based exit nodes in main view (#158)

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>
pull/161/head
Charlotte Brandhorst-Satzkorn 3 months ago committed by GitHub
parent 3615398012
commit 9e8dfbb2ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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