We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 91d6341 + 0b43970 commit 3a6dd6aCopy full SHA for 3a6dd6a
mongodb_consistent_backup/Common/Util.py
@@ -25,6 +25,6 @@ def validate_hostname(hostname):
25
try:
26
if ":" in hostname:
27
hostname, port = hostname.split(":")
28
- socket.gethostbyname(hostname)
+ socket.getaddrinfo(hostname, None)
29
except socket.error, e:
30
raise OperationError("Could not resolve host '%s', error: %s" % (hostname, e))
0 commit comments