first commit
This commit is contained in:
@@ -90,7 +90,7 @@ def has_internet_connection(timeout=5):
|
||||
pass
|
||||
|
||||
# 2) Test direct TCP connectivity to common HTTPS endpoints (port 443).
|
||||
https_hosts = ("pioduino.netmesvoip.ru")
|
||||
https_hosts = ("pypi.org", "files.pythonhosted.org", "github.com","pioduino.netmesvoip.ru")
|
||||
for host in https_hosts:
|
||||
try:
|
||||
socket.create_connection((host, 443), timeout=timeout).close()
|
||||
|
||||
Reference in New Issue
Block a user