# HG changeset patch # User Alexander Solovyov # Date 2009-02-15 18:18:29 # Node ID e3425726b80d1419cba2f1c43aee4d852b8acc72 # Parent 34ff1a1b5dd741ccb03240d485ae548b3528ec0a zeroconf: don't allow ipv6 addresses diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py --- a/hgext/zeroconf/__init__.py +++ b/hgext/zeroconf/__init__.py @@ -52,7 +52,7 @@ def getip(): # 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