zeroconf: advertise a proper hostname for _hg services

This commit is contained in:
Matt Mackall 2008-10-12 15:21:08 -05:00
parent 84b350fc7d
commit 37121b48f9

View File

@ -65,6 +65,7 @@ def publish(name, desc, path, port):
# advertise to Mercurial clients
svc = Zeroconf.ServiceInfo('_hg._tcp.local.',
name + '._hg._tcp.local.',
server = host,
port = port,
properties = {'description': desc,
'path': "/" + path},