Add IsSelf flag to identify tendrils server node
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user