Skip to content

Commit

Permalink
#2424 allow mdns=no as a socket bind option
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@23904 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 23, 2019
1 parent b9a93f0 commit bf0ce2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/xpra/server/server_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,15 @@ def mdns_publish(self):
return
#find all the records we want to publish:
mdns_recs = {}
for socktype, _, info, _ in self._socket_info:
for sock_def, options in self._socket_info.items():
socktype, _, info, _ = sock_def
socktypes = self.get_mdns_socktypes(socktype)
mdns_option = options.get("mdns")
if mdns_option:
v = parse_bool("mdns", mdns_option, False)
if not v:
mdnslog("mdns_publish() mdns(%s)=%s, skipped", info, mdns_option)
continue
mdnslog("mdns_publish() info=%s, socktypes(%s)=%s", info, socktype, socktypes)
for st in socktypes:
recs = mdns_recs.setdefault(st, [])
Expand Down

0 comments on commit bf0ce2f

Please sign in to comment.