Skip to content

Commit 3a6dd6a

Browse files
Merge pull request #159 from OmAsana/master
Add ipv6 support
2 parents 91d6341 + 0b43970 commit 3a6dd6a

File tree

1 file changed

+1
-1
lines changed
  • mongodb_consistent_backup/Common

1 file changed

+1
-1
lines changed

mongodb_consistent_backup/Common/Util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def validate_hostname(hostname):
2525
try:
2626
if ":" in hostname:
2727
hostname, port = hostname.split(":")
28-
socket.gethostbyname(hostname)
28+
socket.getaddrinfo(hostname, None)
2929
except socket.error, e:
3030
raise OperationError("Could not resolve host '%s', error: %s" % (hostname, e))

0 commit comments

Comments
 (0)