Skip to content

Commit 17e5ff2

Browse files
committed
Fix update-geo
Fix update-geo with the updated url as the old one doesn't resolve to any IP
1 parent a6e3fd9 commit 17e5ff2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proxybroker/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def update_geoip_db():
113113
filename = 'GeoLite2-City.tar.gz'
114114
local_file = os.path.join(DATA_DIR, filename)
115115
city_db = os.path.join(DATA_DIR, 'GeoLite2-City.mmdb')
116-
url = 'http://geolite.maxmind.com/download/geoip/database/%s' % filename
116+
url = 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=vP65qsGQCxfewnTs' \
117+
'&suffix=tar.gz '
117118

118119
urllib.request.urlretrieve(url, local_file)
119120

0 commit comments

Comments
 (0)