Skip to content

Commit

Permalink
Fixed mDNS service list
Browse files Browse the repository at this point in the history
  • Loading branch information
jtc42 committed May 10, 2020
1 parent 6b0d372 commit f473c69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/labthings/server/wsgi/gevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(
self.wsgi_server = None
self.zeroconf_server = None
self.service_info = None
self.service_infos = set()
self.service_infos = []

# Events
self.started_event = gevent.event.Event()
Expand All @@ -51,7 +51,7 @@ def register_zeroconf(self):
if i not in ("127.0.0.1", "0.0.0.0")
}
# LabThing service
self.service_infos.add(
self.service_infos.append(
ServiceInfo(
"_labthing._tcp.local.",
f"{self.labthing.safe_title}._labthing._tcp.local.",
Expand All @@ -66,7 +66,7 @@ def register_zeroconf(self):
)
)
# Mozilla WebThing service
self.service_infos.add(
self.service_infos.append(
ServiceInfo(
"_webthing._tcp.local.",
f"{self.labthing.safe_title}._webthing._tcp.local.",
Expand Down

0 comments on commit f473c69

Please sign in to comment.