-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iprange will read integer/numeric! #25
Comments
Yes it does! |
Yes it would cool if it could output in integer form too, that would make loading into MySQL much more streamlined. But using the mysql built-in functions isn't really a big deal. I'm sure there are other instances though that would be helpful to some. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This isn't directly mentioned on the wiki page, but I had a hunch and after experimenting I found out that iprange will read numeric notation directly! So something like:
iprange 18279424 -> 1.22.236.0
iprange 18279424/24 -> 1.22.236.0/24
iprange 18279424-18279679 -> 1.22.236.0/24
Pretty nifty! That's less conversion back & forth when storing IPs in numeric / integer form.
The text was updated successfully, but these errors were encountered: