This commit is contained in:
Andrew 2021-09-25 13:26:46 -04:00
commit 28f46a6f01

View File

@ -90,6 +90,7 @@ class Helpers:
try:
host_public = get('https://api.ipify.org').text
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(10.0)
result = sock.connect_ex((host_public ,server_port))
sock.close()
if result == 0: