From c9576607d4643ea87ca45b7b366f90a65e554741 Mon Sep 17 00:00:00 2001 From: Michael Scovetta Date: Wed, 3 Sep 2025 11:44:37 -0400 Subject: [PATCH] Fix docstring for ssl_check_hostname The default value of `ssl_check_hostname` was changed in #3626 but the docstring still stated the default was `False`. This PR just changes that docstring text to match the new default. --- redis/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/connection.py b/redis/connection.py index 0e7de5a584..b551a3525c 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -1379,7 +1379,7 @@ def __init__( ssl_cert_reqs: The string value for the SSLContext.verify_mode (none, optional, required), or an ssl.VerifyMode. Defaults to "required". ssl_ca_certs: The path to a file of concatenated CA certificates in PEM format. Defaults to None. ssl_ca_data: Either an ASCII string of one or more PEM-encoded certificates or a bytes-like object of DER-encoded certificates. - ssl_check_hostname: If set, match the hostname during the SSL handshake. Defaults to False. + ssl_check_hostname: If set, match the hostname during the SSL handshake. Defaults to True. ssl_ca_path: The path to a directory containing several CA certificates in PEM format. Defaults to None. ssl_password: Password for unlocking an encrypted private key. Defaults to None.