Skip to content

Commit

Permalink
PYTHON-3800 Add lower() to node when validate hosts of srv records (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qkrwjdan authored Jul 5, 2023
1 parent 966a5ad commit 7d7118b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymongo/srv_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _get_srv_response_and_hosts(
# Validate hosts
for node in nodes:
try:
nlist = node[0].split(".")[1:][-self.__slen :]
nlist = node[0].lower().split(".")[1:][-self.__slen :]
except Exception:
raise ConfigurationError(f"Invalid SRV host: {node[0]}")
if self.__plist != nlist:
Expand Down

0 comments on commit 7d7118b

Please sign in to comment.