Skip to content

Commit

Permalink
Fix deprecated call to ssl.SSLContext without specifying protocol (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Nov 21, 2023
1 parent b783aa5 commit 751450a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pychromecast/dial.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _get_status(services, zconf, path, secure, timeout, context):

def get_ssl_context():
"""Create an SSL context."""
context = ssl.SSLContext()
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.verify_mode = ssl.CERT_NONE
return context

Expand Down

0 comments on commit 751450a

Please sign in to comment.