|
|
|
@ -107,9 +107,17 @@ type PeerStatus struct {
|
|
|
|
|
DNSName string
|
|
|
|
|
OS string // HostInfo.OS
|
|
|
|
|
UserID tailcfg.UserID
|
|
|
|
|
|
|
|
|
|
TailscaleIPs []netaddr.IP // Tailscale IP(s) assigned to this node
|
|
|
|
|
|
|
|
|
|
// Tags are the list of ACL tags applied to this node.
|
|
|
|
|
// See tailscale.com/tailcfg#Node.Tags for more information.
|
|
|
|
|
Tags []string `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
// PrimaryRoutes are the routes this node is currently the primary
|
|
|
|
|
// subnet router for, as determined by the control plane. It does
|
|
|
|
|
// not include the IPs in TailscaleIPs.
|
|
|
|
|
PrimaryRoutes []netaddr.IPPrefix `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
// Endpoints:
|
|
|
|
|
Addrs []string
|
|
|
|
|
CurAddr string // one of Addrs, or unique if roaming
|
|
|
|
@ -266,6 +274,12 @@ func (sb *StatusBuilder) AddPeer(peer key.NodePublic, st *PeerStatus) {
|
|
|
|
|
if v := st.TailscaleIPs; v != nil {
|
|
|
|
|
e.TailscaleIPs = v
|
|
|
|
|
}
|
|
|
|
|
if v := st.PrimaryRoutes; v != nil {
|
|
|
|
|
e.PrimaryRoutes = v
|
|
|
|
|
}
|
|
|
|
|
if v := st.Tags; v != nil {
|
|
|
|
|
e.Tags = v
|
|
|
|
|
}
|
|
|
|
|
if v := st.OS; v != "" {
|
|
|
|
|
e.OS = st.OS
|
|
|
|
|
}
|
|
|
|
|