mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Use BinTray when checking Internet connection // Resolve #968
This commit is contained in:
@ -540,8 +540,8 @@ def get_api_result(url, params=None, data=None, auth=None, cache_valid=None):
|
||||
|
||||
|
||||
def internet_on(timeout=3):
|
||||
host = "8.8.8.8"
|
||||
port = 53
|
||||
host = "dl.bintray.com"
|
||||
port = 443
|
||||
try:
|
||||
socket.setdefaulttimeout(timeout)
|
||||
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host, port))
|
||||
|
Reference in New Issue
Block a user