iprange icon indicating copy to clipboard operation
iprange copied to clipboard

iprange will read integer/numeric!

Open Jas0n99 opened this issue 7 years ago • 2 comments

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.

Jas0n99 avatar Dec 02 '18 22:12 Jas0n99

Yes it does! It would also be nice to add an option to output in this format too...

ktsaou avatar Dec 03 '18 03:12 ktsaou

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.

Jas0n99 avatar Dec 03 '18 13:12 Jas0n99