diff --git a/i2p2www/legacy.py b/i2p2www/legacy.py index d8d18c24..cbd778b5 100644 --- a/i2p2www/legacy.py +++ b/i2p2www/legacy.py @@ -41,6 +41,7 @@ LEGACY_PAGES_MAP={ 'donate': 'get-involved/donate', 'faq': 'support/faq', 'getinvolved': 'get-involved', + 'geoip': 'docs/spec/geoip', 'glossary': 'support/glossary', 'halloffame': 'about/hall-of-fame', 'how': 'docs', diff --git a/i2p2www/pages/site/docs/index.html b/i2p2www/pages/site/docs/index.html index 3cc69411..3a95ba2f 100644 --- a/i2p2www/pages/site/docs/index.html +++ b/i2p2www/pages/site/docs/index.html @@ -184,7 +184,7 @@ Traditionally used only by Java applications and higher-level APIs.
+
{% trans -%} This page specifies the format of the various GeoIP files, used by the router to look up a country for an IP. -
+{%- endtrans %} -+
{% trans -%} This format is easily generated from data files available from many public sources. For example: +{%- endtrans %}
# wget http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip # unzip GeoIPCountryCSV.zip @@ -29,10 +30,11 @@ For example: -IPv4 (geoip.txt) Format
-+
{% trans %}IPv4 (geoip.txt) Format{% endtrans %}
+{% trans -%} This format is borrowed from Tor and is easily generated from data files available from many public sources. For example: +{%- endtrans %}
# wget http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip # unzip GeoIPCountryCSV.zip @@ -49,10 +51,11 @@ For example: -IPv6 (geoipv6.dat.gz) Format
-+
{% trans %}IPv6 (geoipv6.dat.gz) Format{% endtrans %}
+{% trans -%} This is a compressed binary format designed for I2P. The file is gzipped. Ungzipped format: +{%- endtrans %}
Bytes 0-9: Magic number "I2PGeoIPv6" Bytes 10-11: Version (0x0001) @@ -65,8 +68,7 @@ The file is gzipped. Ungzipped format: 8 byte to (/64) 2 byte ISO country code LOWER case (ASCII)--NOTES: +
{% trans %}NOTES:{% endtrans %}