Update README

This commit is contained in:
Grégory Soutadé 2016-03-02 17:36:24 +01:00
parent d9c104c731
commit 13ef026003
2 changed files with 5 additions and 11 deletions

9
README
View File

@ -3,13 +3,14 @@ It's based on data provided by AFRINIC, ARIN, APNIC, LACNIC and RIPENCC organisa
!!! These data are updated every day, so iptogeo must be recompiled every day to be up to date !!!
It supports bot IPv4 and IPv6 requests.
It supports both IPv4 and IPv6 requests.
Be careful : the result is only the assigned IP by a regional regulator, but the end user
may be located in another country. It's the case for ISP that rents IP to differents countries.
may be located in another country. It's the case for ISP that rents IP to differents countries
or for VPN services.
iptogeo does not plan to replace big commercial Geo databases on this point.
Two mode are available : server mode which listen for queries on default port 53333 and
Two mode are available : server mode which listen for queries on default port 53333, and
interactive mode allowing command line queries.
To compile it :
@ -18,6 +19,6 @@ To compile it :
Makefile flags :
* DEBUG=1 to compile in debug mode
* USE_SECCOMP=1 to compile with seccomp support
* USE_SECCOMP=1 to compile with seccomp support (must be installed)
More information can be found at http://indefero.soutade.fr/p/iptogeo

View File

@ -194,13 +194,6 @@ def get_interval(root, intervals, level):
new_intervals.append(ip)
return new_intervals
# 1.5.0.0
# -> 1.5.0.0 .. 1.5.29.0
# -> 1.5.30.0 .. 1.5.30.128
# -> 1.5.30.129 .. 1.5.31.0
# -> 1.5.32.0 .. 1.5.33.0
# -> 1.6.32.0 .. 1.7.0.0
def print_interval(interval):
p = '['
for i in interval: