vortex-5 / ddwrt-bwmon

An Individual Bandwidth Monitor For DD-WRT
171 stars 37 forks source link

getName/macIpDns broken with upper case MAC change #41

Closed esassaman closed 7 years ago

esassaman commented 7 years ago

Version 1.8.0 freshly installed

I'm not getting names in the device column, nor IP addresses. As a test I changed the macIpDns() call in bwmon.html on line 74 to macIpDns[device.mac.toLowerCase() and getNames() call to getName(device.mac.toLowerCase()) forcing lower case in each instance and that fixed the problem. Somehow upper case MAC IDs are being passed into both functions but all the MAC IDs in $scope.macNames are lower case, no match and only mac addresses were returned from each function as a fallback.

vortex-5 commented 7 years ago

I just got back from vacation Ill investigate this tomorrow.

vortex-5 commented 7 years ago

Thanks for your bugfix I have updated the current release to account for your router variant. Not all routers are consistent with the dns mac entries going forward I'll probably have to ensure all references to the internal mac tables are corrected to be lowercase.

Please check out release 1.8.1 for your fix: https://github.com/vortex-5/ddwrt-bwmon/releases/tag/1.8.1

vortex-5 commented 7 years ago

Commits relevant for your fix can be found here: https://github.com/vortex-5/ddwrt-bwmon/commit/741c590990af711517e1d67a40b269eb38dc5c2b

esassaman commented 7 years ago

The fix works great! Thank you. BTW I have a Asus RT-N16 router running DD-WRT v24-sp2 (08/12/10) mega, sorry for not making a note of that earlier!