Revision b43dcc5a lib/netutils.py
b/lib/netutils.py | ||
---|---|---|
132 | 132 |
if family in (socket.AF_INET, socket.AF_INET6): |
133 | 133 |
result = socket.getaddrinfo(hostname, None, family) |
134 | 134 |
else: |
135 |
result = socket.getaddrinfo(hostname, None, socket.AF_INET)
|
|
135 |
result = socket.getaddrinfo(hostname, None) |
|
136 | 136 |
except (socket.gaierror, socket.herror, socket.error), err: |
137 | 137 |
# hostname not found in DNS, or other socket exception in the |
138 | 138 |
# (code, description format) |
Also available in: Unified diff