Use BinTray when checking Internet connection // Resolve #968

This commit is contained in:
Ivan Kravets
2017-05-27 02:35:48 +03:00
parent 021f0323cb
commit 074e262e66

View File

@ -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))