PYTHON-3800 Add lower() to node when validate hosts of srv records (#1289)
This commit is contained in:
parent
966a5adc4a
commit
7d7118bde4
@ -118,7 +118,7 @@ class _SrvResolver:
|
||||
# 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user