internal/clientinfo: use last seen IP for NDP discovery

This commit is contained in:
Cuong Manh Le
2024-03-22 16:07:29 +07:00
committed by Cuong Manh Le
parent 3e62bd3dbd
commit cc6ae290f8
3 changed files with 26 additions and 12 deletions
+1 -2
View File
@@ -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)
}
}