2019-11-19 11:55:03 +08:00
|
|
|
diff --git a/pymongo/pool.py b/pymongo/pool.py
|
2021-08-19 10:51:06 +08:00
|
|
|
index 9aed758..be87816 100644
|
2019-11-19 11:55:03 +08:00
|
|
|
--- a/pymongo/pool.py
|
|
|
|
|
+++ b/pymongo/pool.py
|
2021-08-19 10:51:06 +08:00
|
|
|
@@ -61,7 +61,7 @@ from pymongo.read_preferences import ReadPreference
|
2019-11-19 11:55:03 +08:00
|
|
|
from pymongo.server_type import SERVER_TYPE
|
2021-08-19 10:51:06 +08:00
|
|
|
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
|
2019-11-19 11:55:03 +08:00
|
|
|
|
|
|
|
|
# For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are
|
|
|
|
|
# not permitted for SNI hostname.
|