mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
zeroconf: advertise a proper hostname for _hg services
This commit is contained in:
parent
84b350fc7d
commit
37121b48f9
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user