DylanPiercey / local-devices

🔮 Find devices connected to the current local network.
MIT License
140 stars 27 forks source link

getServers() never looks for subnet.firstAddress #71

Open jewalt opened 6 months ago

jewalt commented 6 months ago

in getServers(), the while loop post-increments current before pushing to result. This means the first address is never in the result list.

possibly add between lines 68 and 69: result.push(ip.fromLong(current)

This would push the first address before it is post-incremented in the while test.