Show More
@@ -77,8 +77,9 b' def publish(name, desc, path, port):' | |||
|
77 | 77 | ip = getip() |
|
78 | 78 | localip = socket.inet_aton(ip) |
|
79 | 79 | |
|
80 |
|
|
|
81 |
host = |
|
|
80 | hostname = socket.gethostname().split('.')[0] | |
|
81 | host = hostname + ".local" | |
|
82 | name = "%s-%s" % (hostname, name) | |
|
82 | 83 | |
|
83 | 84 | # advertise to browsers |
|
84 | 85 | svc = Zeroconf.ServiceInfo('_http._tcp.local.', |
General Comments 0
You need to be logged in to leave comments.
Login now