Add IsSelf flag to identify tendrils server node

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-02-04 11:42:07 -08:00
parent aee1487f22
commit 48e1e69fde
3 changed files with 24 additions and 2 deletions

View File

@@ -200,6 +200,9 @@ func (t *Tendrils) populateLocalAddresses() {
t.nodes.Update(target, netIface.HardwareAddr, ips, netIface.Name, hostname, "local")
if target == nil {
target = t.nodes.GetByMAC(netIface.HardwareAddr)
if target != nil {
target.IsSelf = true
}
}
}
}