changeset 7777 | e3425726b80d |
parent 7606 | e86ca711544d |
child 7845 | c2cd8d772805 |
--- a/hgext/zeroconf/__init__.py Mon Feb 16 01:41:01 2009 +0100 +++ b/hgext/zeroconf/__init__.py Sun Feb 15 20:18:29 2009 +0200 @@ -52,7 +52,7 @@ # Generic method, sometimes gives useless results dumbip = socket.gethostbyaddr(socket.gethostname())[2][0] - if not dumbip.startswith('127.'): + if not dumbip.startswith('127.') and ':' not in dumbip: return dumbip # works elsewhere, but actually sends a packet