WIP: rebase fork onto upstream/main (v1.103.0) #15

Closed
codinget wants to merge 670 commits from webnet into save/webnet-2026-07-29
2 changed files with 5 additions and 0 deletions
Showing only changes of commit 5295e3e119 - Show all commits
+1
View File
@@ -1516,6 +1516,7 @@ func (b *LocalBackend) populatePeerStatusLocked(sb *ipnstate.StatusBuilder) {
func peerStatusFromNode(ps *ipnstate.PeerStatus, n tailcfg.NodeView) {
ps.PublicKey = n.Key()
ps.ID = n.StableID()
ps.NodeID = n.ID()
ps.Created = n.Created()
ps.ExitNodeOption = buildfeatures.HasUseExitNode && tsaddr.ContainsExitRoutes(n.AllowedIPs())
if n.Tags().Len() != 0 {
+4
View File
@@ -223,6 +223,7 @@ type PeerStatusLite struct {
// inconsistencies or lost data in the peer status.
type PeerStatus struct {
ID tailcfg.StableNodeID
NodeID tailcfg.NodeID
PublicKey key.NodePublic
HostName string // HostInfo's Hostname (not a DNS name or necessarily unique)
@@ -443,6 +444,9 @@ func (sb *StatusBuilder) AddPeer(peer key.NodePublic, st *PeerStatus) {
if v := st.ID; v != "" {
e.ID = v
}
if v := st.NodeID; v != 0 {
e.NodeID = v
}
if v := st.HostName; v != "" {
e.HostName = v
}