Skip to content

Commit

Permalink
stop as soon as we find a valid backend
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 12, 2023
1 parent d26c599 commit 3120eda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/net/socket_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def mdns_publish(display_name, listen_on, text_dict=None):
except ImportError as e:
log(f"mdns support is not installed: {e}")
return ()
PREFER_ZEROCONF = envbool("XPRA_PREFER_ZEROCONF", True)
PREFER_ZEROCONF = envbool("XPRA_PREFER_ZEROCONF", False)
imports = [import_zeroconf, import_avahi]
if not PREFER_ZEROCONF:
imports = reversed(imports)
Expand All @@ -838,6 +838,7 @@ def mdns_publish(display_name, listen_on, text_dict=None):
for i in imports:
try:
MDNSPublishers, get_interface_index = i()
break
except ImportError as e:
log("mdns import failure", exc_info=True)
exceptions.append(e)
Expand Down

0 comments on commit 3120eda

Please sign in to comment.