Skip to content

Commit 187f0fa

Browse files
authored
Change address for connection test (huggingface#785)
Some ISP's (like mine) reserves 1.1.1.1 for internal testing, meaning _internet_connected(); needlessly retries for a minute until it fails even though my connection is fine. Propose 8.8.8.8 instead as this is also publically available and not normally blocked by ISPs.
1 parent 472185c commit 187f0fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shark/shark_downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _internet_connected():
198198
import requests as req
199199

200200
try:
201-
req.get("http://1.1.1.1")
201+
req.get("http://8.8.8.8")
202202
return True
203203
except:
204204
return False

0 commit comments

Comments
 (0)