summaryrefslogtreecommitdiffstats
path: root/scripts/internet_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/internet_check.py')
-rw-r--r--scripts/internet_check.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/internet_check.py b/scripts/internet_check.py
index 1bed50a..7fd3b1b 100644
--- a/scripts/internet_check.py
+++ b/scripts/internet_check.py
@@ -16,6 +16,7 @@ TEST_HOST = "google.com"
def is_connected():
+ """ Perform socket connect to port 80 to verify connectivity """
try:
host = socket.gethostbyname(TEST_HOST)
socket.create_connection((host, 80), 2)