Skip to content

Commit bb4ab5d

Browse files
fix: update TLS protocol for python3.10 (GoogleCloudPlatform#575)
1 parent 309d344 commit bb4ab5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

google/cloud/sql/connector/instance.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ def __init__(
7979
) -> None:
8080
self.ip_addrs = ip_addrs
8181
self.database_version = database_version
82-
self.context = ssl.SSLContext(ssl.PROTOCOL_TLS)
82+
self.context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
83+
84+
# update ssl.PROTOCOL_TLS_CLIENT default
85+
self.context.check_hostname = False
8386

8487
# verify OpenSSL version supports TLSv1.3
8588
if ssl.HAS_TLSv1_3:

0 commit comments

Comments
 (0)