zeroconf: advertise a proper hostname for _hg services
authorMatt Mackall <mpm@selenic.com>
Sun, 12 Oct 2008 15:21:08 -0500
changeset 7088 58b7b5ef6cd0
parent 7087 62c71741ae7d
child 7089 c57b30f1bc15
zeroconf: advertise a proper hostname for _hg services
hgext/zeroconf/__init__.py
--- 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
@@ -65,6 +65,7 @@
     # advertise to Mercurial clients
     svc = Zeroconf.ServiceInfo('_hg._tcp.local.',
                                name + '._hg._tcp.local.',
+                               server = host,
                                port = port,
                                properties = {'description': desc,
                                              'path': "/" + path},