diff --git a/pymongo/pool.py b/pymongo/pool.py index 859d0e0..f55fd8e 100644 --- a/pymongo/pool.py +++ b/pymongo/pool.py @@ -49,8 +49,7 @@ from pymongo.network import (command, SocketChecker) from pymongo.read_preferences import ReadPreference from pymongo.server_type import SERVER_TYPE -# Always use our backport so we always have support for IP address matching -from pymongo.ssl_match_hostname import match_hostname, CertificateError +from ssl import match_hostname, CertificateError # For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are # not permitted for SNI hostname.