python-pymongo/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
Troy Dawson 1bf06eedeb RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/python-pymongo#64f69ce839be8ce89aff773614b41056ab7381ae
2020-10-14 19:53:41 -07:00

15 lines
637 B
Diff

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.