mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
internal/clientinfo: use last seen IP for NDP discovery
This commit is contained in:
@@ -17,8 +17,7 @@ func (nd *ndpDiscover) scan() {
|
||||
for _, n := range neighs {
|
||||
ip := n.IP.String()
|
||||
mac := n.HardwareAddr.String()
|
||||
nd.mac.Store(ip, mac)
|
||||
nd.ip.Store(mac, ip)
|
||||
nd.saveInfo(ip, mac)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user