We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ssl.create_default_context
1 parent 7d0e48c commit f218f53Copy full SHA for f218f53
1 file changed
nanokvm/utils.py
@@ -71,7 +71,7 @@ async def async_fetch_remote_fingerprint(
71
hostname = parsed_url.hostname
72
port = parsed_url.port or 443
73
74
- ssl_ctx = ssl.create_default_context()
+ ssl_ctx = await asyncio.to_thread(ssl.create_default_context)
75
ssl_ctx.check_hostname = False
76
ssl_ctx.verify_mode = ssl.CERT_NONE
77
0 commit comments