Skip to content

Commit c957660

Browse files
authored
Fix docstring for ssl_check_hostname
The default value of `ssl_check_hostname` was changed in redis#3626 but the docstring still stated the default was `False`. This PR just changes that docstring text to match the new default.
1 parent 4cdf082 commit c957660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ def __init__(
13791379
ssl_cert_reqs: The string value for the SSLContext.verify_mode (none, optional, required), or an ssl.VerifyMode. Defaults to "required".
13801380
ssl_ca_certs: The path to a file of concatenated CA certificates in PEM format. Defaults to None.
13811381
ssl_ca_data: Either an ASCII string of one or more PEM-encoded certificates or a bytes-like object of DER-encoded certificates.
1382-
ssl_check_hostname: If set, match the hostname during the SSL handshake. Defaults to False.
1382+
ssl_check_hostname: If set, match the hostname during the SSL handshake. Defaults to True.
13831383
ssl_ca_path: The path to a directory containing several CA certificates in PEM format. Defaults to None.
13841384
ssl_password: Password for unlocking an encrypted private key. Defaults to None.
13851385

0 commit comments

Comments
 (0)