Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
nodeARP.getMAC(ip, function (err, mac) {
if (!err && mac) {
if (getmac.isMac(mac)) {
result.push({ip: ip, mac: mac})
}
}
if ((++count) > 254) {
self.hosts = result
cb(result)
}
})
})(ip)
nodeARP.getMAC(ip, function(err, mac) {
if (!err && mac) {
if (getmac.isMac(mac))
result.push({ip: ip, mac: mac})
}
if ((++count) > 254) cb(null, result)
});
})(ip)