Update _config.py

This commit is contained in:
Tom Christie 2024-11-21 11:31:57 +00:00 committed by GitHub
parent b413005684
commit 83fbd71063
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ def create_ssl_context(verify: ssl.SSLContext | bool = True) -> ssl.SSLContext:
import truststore
if verify is True:
return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
elif verify is False:
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ssl_context.check_hostname = False