Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Handle not socket_ok errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Sep 22, 2019
1 parent ea20d9c commit aee318f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def create_dpissl_context(padding=False, nosni_first=False, fakesni_first=False,
siteresults.append(True)
print("[✓] Сайт открывается")
except (ssl.SSLError, socket.error) as e:
if socket_ok:
if not socket_ok:
print("[☠] Ошибка (сокет):", repr(e))
else:
print("[☠] Ошибка (TLS):", repr(e))
Expand Down

0 comments on commit aee318f

Please sign in to comment.