yolothreat / utilitybelt

A Python library for being a CND Batman....
MIT License
35 stars 12 forks source link

Doesn't handle RFC1918 IP Addresses #6

Closed sroberts closed 10 years ago

sroberts commented 10 years ago

Yeah... I just went mental thinking I was writing bad tests, not thinking that 127.0.0.1 wouldn't geolocate effectively.

krmaxwell commented 10 years ago

hahahaha... honestly this reminds me of a new issue I need to add

sroberts commented 10 years ago
RFC1918 name IP address range number of addresses largest CIDR block (subnet mask)
24-bit block 10.0.0.0 - 10.255.255.255 16,777,216 10.0.0.0/8 (255.0.0.0)
20-bit block 172.16.0.0 - 172.31.255.255 1,048,576 172.16.0.0/12 (255.240.0.0)
16-bit block 192.168.0.0 - 192.168.255.255 65,536 192.168.0.0/16 (255.255.0.0)