Update _config.py
This commit is contained in:
parent
b413005684
commit
83fbd71063
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user