From e658a12c40b34fab69d58f32964f6f74c7995b3a Mon Sep 17 00:00:00 2001 From: Christopher Luna Date: Tue, 26 Sep 2023 13:23:45 -0400 Subject: [PATCH] MaxMind requires HTTPS for database downloads MaxMind will be requiring HTTPS for all database download requests starting in March 2024. See [this release note](https://dev.maxmind.com/geoip/release-notes/2023#api-policies---temporary-enforcement-on-october-17-2023). --- GeoIP/Linux/GeoIP.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GeoIP/Linux/GeoIP.py b/GeoIP/Linux/GeoIP.py index 679f4f7..3a43be4 100644 --- a/GeoIP/Linux/GeoIP.py +++ b/GeoIP/Linux/GeoIP.py @@ -26,12 +26,12 @@ def database(url,dbgz,db): if os.path.isfile('GeoLiteCity.dat'): pass else: - database('http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz', 'GeoLiteCity.dat.gz', 'GeoLiteCity.dat') + database('https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz', 'GeoLiteCity.dat.gz', 'GeoLiteCity.dat') if os.path.isfile('GeoIPASNum.dat'): pass else: - database('http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz', 'GeoIPASNum.dat.gz', 'GeoIPASNum.dat') + database('https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz', 'GeoIPASNum.dat.gz', 'GeoIPASNum.dat') tfolder = os.listdir(os.getenv('PROCDOTPLUGIN_TempFolder')) details = open(os.getenv('PROCDOTPLUGIN_GraphFileDetails'),'rb').readlines() @@ -57,4 +57,4 @@ def database(url,dbgz,db): details = "".join(details) n.write(details) n.close() -sys.exit(0) \ No newline at end of file +sys.exit(0)