fix merge conflict

This commit is contained in:
mungai-njoroge
2024-03-27 08:39:30 +03:00
19 changed files with 161 additions and 12 deletions
+2
View File
@@ -3,10 +3,12 @@ import socket as Socket
def has_connection(host="google.it", port=80, timeout=3):
"""
# REVIEW Was:
Host: 8.8.8.8 (google-public-dns-a.google.com)
OpenPort: 53/tcp
Service: domain (DNS/TCP)
"""
try:
Socket.setdefaulttimeout(timeout)
Socket.socket(Socket.AF_INET, Socket.SOCK_STREAM).connect((host, port))