ipinfo / mmdbctl

mmdbctl is an MMDB file management CLI supporting various operations on MMDB database files.
Apache License 2.0
111 stars 15 forks source link

Compatibility issue with IP2Location DB which uses int format for ip address range start and end #17

Closed hicasper closed 3 months ago

hicasper commented 1 year ago

Command: mmdbctl import -c --in IP2LOCATION-LITE-DB3.CSV --out IP2LOCATION-LITE-DB3.mmdb Output: err: couldn't parse cidr "16777216/32": invalid CIDR address: 16777216/32

IP2LOCATION-LITE-DB3.CSV file format:

"0","16777215","-","-","-","-"
"16777216","16777471","US","United States of America","California","San Jose"
"16777472","16778239","CN","China","Fujian","Fuzhou"
"16778240","16778495","AU","Australia","Tasmania","Glebe"
"16778496","16779263","AU","Australia","Victoria","Melbourne"
"16779264","16781311","CN","China","Guangdong","Guangzhou"
"16781312","16785407","JP","Japan","Tokyo","Tokyo"
max-ipinfo commented 3 months ago

@hicasper is this still an issue?

hicasper commented 3 months ago

@hicasper is this still an issue?

Problem solved, thanks.