Closed coderholic closed 9 years ago
Im sorry for reacting late, do you have an mmdb with 32bit record size for me to test? or can you confirm that changing bytes
to buffer
on line 130 resolves the issue? :)
MaxMind provides a 32-bit test database. It should have 1.1.1.1-1.1.1.32 and :1:ffff:ffff-::2:0000:0059 in it.
Oh sweet, thanks :) will look into it now.
Is fixed now and published on npm :)
If you try and read an mmdb with a 32bit record size you get the following error:
Looking at the code at https://github.com/PaddeK/node-maxmind-db/blob/master/lib/Reader.js#L130 it seems that bytes it never set for this code path