mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-01-08 13:00:06 +01:00
Prevent a redirect and use the final URL
This commit is contained in:
@@ -338,7 +338,7 @@ def closestServers(client, all=False):
|
||||
distance
|
||||
"""
|
||||
|
||||
uh = urlopen('http://www.speedtest.net/speedtest-servers.php')
|
||||
uh = urlopen('http://c.speedtest.net/speedtest-servers-static.php')
|
||||
serversxml = []
|
||||
while 1:
|
||||
serversxml.append(uh.read(10240))
|
||||
|
||||
Reference in New Issue
Block a user