hgext/zeroconf/__init__.py
changeset 7087 62c71741ae7d
parent 7071 643c751e60b2
child 7088 58b7b5ef6cd0
--- a/hgext/zeroconf/__init__.py	Sun Oct 12 15:21:08 2008 -0500
+++ b/hgext/zeroconf/__init__.py	Sun Oct 12 15:21:08 2008 -0500
@@ -49,7 +49,8 @@
         ip = getip()
         localip = socket.inet_aton(ip)
 
-    host = socket.gethostname() + ".local"
+    parts = socket.gethostname().split('.')
+    host = parts[0] + ".local"
 
     # advertise to browsers
     svc = Zeroconf.ServiceInfo('_http._tcp.local.',