diff options
author | Chris Lumens <clumens@redhat.com> | 2006-10-09 15:43:46 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-10-09 15:43:46 +0000 |
commit | d1012b19d75d4e3862d07808259a1072a96a3152 (patch) | |
tree | ba70f82ad3cee9c483ae5b0f25226f93f4426801 /network.py | |
parent | 43122a1f88359eafac5469eb6abc83e1f3daf508 (diff) | |
download | anaconda-d1012b19d75d4e3862d07808259a1072a96a3152.tar.gz anaconda-d1012b19d75d4e3862d07808259a1072a96a3152.tar.xz anaconda-d1012b19d75d4e3862d07808259a1072a96a3152.zip |
Fix traceback on looking up hostnames (#209672).
Diffstat (limited to 'network.py')
-rw-r--r-- | network.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network.py b/network.py index 4ba464b02..85e6820f7 100644 --- a/network.py +++ b/network.py @@ -363,12 +363,12 @@ class Network: try: (family, socktype, proto, canonname, sockaddr) = \ - socket.getaddrinfo(self.hostname, None, socket.AF_INET) + socket.getaddrinfo(self.hostname, None, socket.AF_INET)[0] (ip, port) = sockaddr except: try: (family, socktype, proto, canonname, sockaddr) = \ - socket.getaddrinfo(self.hostname, None, socket.AF_INET6) + socket.getaddrinfo(self.hostname, None, socket.AF_INET6)[0] (ip, port, flowinfo, scopeid) = sockaddr except: return None |