diff --git a/Lib/ssl.py b/Lib/ssl.py index 1d5873726441e4..ce1cad418a95fc 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -749,8 +749,6 @@ def _create_unverified_context(protocol=None, *, cert_reqs=CERT_NONE, context.check_hostname = check_hostname if cert_reqs is not None: context.verify_mode = cert_reqs - if check_hostname: - context.check_hostname = True if keyfile and not certfile: raise ValueError("certfile must be specified")
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: