python-pymongo/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
FFrog 0145edbe12 update version to 3.11.3
(cherry picked from commit 6d1c251c18109d4c39c7d92a6f707790e770c72c)
2021-08-20 09:54:37 +08:00

14 lines
567 B
Diff

diff --git a/pymongo/pool.py b/pymongo/pool.py
index 9aed758..be87816 100644
--- a/pymongo/pool.py
+++ b/pymongo/pool.py
@@ -61,7 +61,7 @@ from pymongo.read_preferences import ReadPreference
from pymongo.server_type import SERVER_TYPE
from pymongo.socket_checker import SocketChecker
# Always use our backport so we always have support for IP address matching
-from pymongo.ssl_match_hostname import match_hostname
+from ssl import match_hostname
# For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are
# not permitted for SNI hostname.