Dhcp server crashes if all IP addresses are bound.
In dhcp.js file _selectAddress function's random ip function gets in infinite loop or _selectAddress doesn't return anything, causing undefined in yiaddr.
In dhcp.js at rows 308 and 309 this._state[mac].leaseTime should be this._state[mac].bindTime?
At row 319 the if statement (oldestMac !== null && lastIP - firstIP === leases) is wrong too. Doesn't work that way.
Dhcp server crashes if all IP addresses are bound. In dhcp.js file _selectAddress function's random ip function gets in infinite loop or _selectAddress doesn't return anything, causing undefined in yiaddr.