|
|
@@ -216,6 +216,8 @@ type PeerStatus struct {
|
|
|
|
|
|
// TailscaleIPs are the IP addresses assigned to the node.
|
|
|
TailscaleIPs []netip.Addr
|
|
|
+ // AllowedIPs are IP addresses allowed to route to this node.
|
|
|
+ AllowedIPs *views.Slice[netip.Prefix] `json:",omitempty"`
|
|
|
|
|
|
// Tags are the list of ACL tags applied to this node.
|
|
|
// See tailscale.com/tailcfg#Node.Tags for more information.
|
|
|
@@ -414,6 +416,9 @@ func (sb *StatusBuilder) AddPeer(peer key.NodePublic, st *PeerStatus) {
|
|
|
if v := st.PrimaryRoutes; v != nil && !v.IsNil() {
|
|
|
e.PrimaryRoutes = v
|
|
|
}
|
|
|
+ if v := st.AllowedIPs; v != nil && !v.IsNil() {
|
|
|
+ e.AllowedIPs = v
|
|
|
+ }
|
|
|
if v := st.Tags; v != nil && !v.IsNil() {
|
|
|
e.Tags = v
|
|
|
}
|