Open gadelkareem opened 5 years ago
I use cidr blocks and it's less accurate. Some blocks contains ips with different objective
Excuse me, I do not use "cidr blocks", I use ASN... I had thought about sharing it and I discovered the mistake
I think using CIDR blocks directly will also simplify this library since most hosting providers have a CIDR list of their network. However the list already contains a lot of ranges that do not have a reference in the code, which we could use this code to convert it back https://play.golang.org/p/nJE2EPx88-
I am using https://github.com/yl2chen/cidranger to look up IPs inside of CIDR blocks and I think having the CIDR blocks on the CSV file would make much more sense. Any reason for using ranges over CIDR blocks?