branch | stable |
changeset 10317 | 192083a3e6fe |
parent 10263 | 25e572394f5c |
child 10342 | 579aae5aa549 |
--- a/hgext/zeroconf/__init__.py Fri Feb 05 04:33:08 2010 -0600 +++ b/hgext/zeroconf/__init__.py Fri Feb 05 10:16:52 2010 -0600 @@ -49,7 +49,7 @@ dumbip = socket.gethostbyaddr(socket.gethostname())[2][0] if not dumbip.startswith('127.') and ':' not in dumbip: return dumbip - except socket.gaierror: + except (socket.gaierror, socket.herror): dumbip = '127.0.0.1' # works elsewhere, but actually sends a packet