forked from I2P_Developers/i2p.www
Fixed 'any mirror' download redirect
This commit is contained in:
@@ -73,4 +73,5 @@ def downloads_redirect(version, protocol, domain, file):
|
||||
if not domain in mirrors:
|
||||
abort(404)
|
||||
return redirect(mirrors[domain]['url'] % data)
|
||||
return redirect(mirrors[randint(0, len(mirrors) - 1)]['url'] % data)
|
||||
randomain = mirrors.keys()[randint(0, len(mirrors) - 1)]
|
||||
return redirect(mirrors[randomain]['url'] % data)
|
||||
|
Reference in New Issue
Block a user