Track sACN emitters and receivers with peer linking

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-28 21:27:35 -08:00
parent c6109c28f0
commit 7aac3c0559
5 changed files with 190 additions and 63 deletions

View File

@@ -445,6 +445,10 @@ func (n *Nodes) GetByIP(ip net.IP) *Node {
n.mu.RLock()
defer n.mu.RUnlock()
return n.getByIPLocked(ip)
}
func (n *Nodes) getByIPLocked(ip net.IP) *Node {
if id, exists := n.ipIndex[ip.String()]; exists {
return n.nodes[id]
}