Show More
@@ -49,7 +49,8 b' def publish(name, desc, path, port):' | |||||
49 | ip = getip() |
|
49 | ip = getip() | |
50 | localip = socket.inet_aton(ip) |
|
50 | localip = socket.inet_aton(ip) | |
51 |
|
51 | |||
52 |
|
|
52 | parts = socket.gethostname().split('.') | |
|
53 | host = parts[0] + ".local" | |||
53 |
|
54 | |||
54 | # advertise to browsers |
|
55 | # advertise to browsers | |
55 | svc = Zeroconf.ServiceInfo('_http._tcp.local.', |
|
56 | svc = Zeroconf.ServiceInfo('_http._tcp.local.', |
General Comments 0
You need to be logged in to leave comments.
Login now