]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Download MaxMind's geoip file over https.
authorKarsten Loesing <karsten.loesing@gmx.net>
Tue, 25 Feb 2014 10:26:27 +0000 (11:26 +0100)
committerKarsten Loesing <karsten.loesing@gmx.net>
Tue, 25 Feb 2014 10:26:27 +0000 (11:26 +0100)
If the cert turns out to be invalid or if wget is otherwise unable to
verify it, it's going to return an error and not download the file for us.

Spotted by nickm.

src/config/mmdb-convert.py

index 21d170adf68e35445ca5dc4ac4c0763f3684fccd..269a5fe20de5bf69221f93e781eac2abf30332dc 100644 (file)
@@ -418,7 +418,7 @@ def dump_tree(entries, node, dump_item, prefix=""):
 
 GEOIP_FILE_HEADER = """\
 # Last updated based on %s Maxmind GeoLite2 Country
-# wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
+# wget https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
 # gunzip GeoLite2-Country.mmdb.gz
 # python mmdb-convert.py GeoLite2-Country.mmdb
 """