Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Why not just CIDR blocks? #149

Open
gadelkareem opened this issue Feb 13, 2019 · 3 comments
Open

Why not just CIDR blocks? #149

gadelkareem opened this issue Feb 13, 2019 · 3 comments

Comments

@gadelkareem
Copy link

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?

@jrivero
Copy link

jrivero commented Feb 19, 2019

I use cidr blocks and it's less accurate. Some blocks contains ips with different objective

@jrivero
Copy link

jrivero commented Feb 19, 2019

Excuse me, I do not use "cidr blocks", I use ASN... I had thought about sharing it and I discovered the mistake

@gadelkareem
Copy link
Author

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-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants