maxmind / MaxMind-DB-Writer-perl

Create MaxMind DB database files
https://metacpan.org/release/MaxMind-DB-Writer/
Other
77 stars 27 forks source link

IPv4 and IPv6 data conflict #115

Closed ningliangquantil closed 4 years ago

ningliangquantil commented 4 years ago

Hi,

I found a problem when using both IPv4 and IPv6 generatethe ip2region.mmdb file: when the IPv4 segment is converted to IPv6, and the IPv6 also has this segment, it will cause problems in the result that the region information of IPv4 is overwritten by ipv6.

Than you.

oschwald commented 4 years ago

This is part of the file format. The range used for IPv4 is reserved so it should not be in use. The solution would be not to insert "IPv6" networks into that range.