python-pymongo/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
2021-08-19 10:51:06 +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.