From 13ef026003ab9ec9e97ff8f8ac46a969ab24c6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Wed, 2 Mar 2016 17:36:24 +0100 Subject: [PATCH] Update README --- README | 9 +++++---- data/build_c_array.py | 7 ------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/README b/README index 4f08238..26703f1 100644 --- a/README +++ b/README @@ -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 diff --git a/data/build_c_array.py b/data/build_c_array.py index 9a03835..5b5906e 100755 --- a/data/build_c_array.py +++ b/data/build_c_array.py @@ -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: