Skip to content

Commit

Permalink
fix blocking calls on ssl_context
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlizio committed Sep 10, 2024
1 parent ac1bad3 commit 429faf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvlx/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def write(self, frame: FrameBase) -> None:
@staticmethod
def create_ssl_context() -> ssl.SSLContext:
"""Create and return SSL Context."""
ssl_context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
return ssl_context
Expand Down

0 comments on commit 429faf9

Please sign in to comment.