mmdbctl icon indicating copy to clipboard operation
mmdbctl copied to clipboard

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

Open hicasper opened this issue 2 years ago • 0 comments

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"

hicasper avatar Sep 17 '23 08:09 hicasper