From 933917d2f03dea31d680baa05b5096841e717f02 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 14 Feb 2024 16:43:15 +0700 Subject: [PATCH] backport 0c6bcc23a5bde960c90f4aea7d04f405692718ad: avoid mdns errors, log message instead --- xpra/server/server_core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xpra/server/server_core.py b/xpra/server/server_core.py index 33a4b143ce..cc7685ebbe 100644 --- a/xpra/server/server_core.py +++ b/xpra/server/server_core.py @@ -907,9 +907,13 @@ def mdns_publish(self) -> None: continue mdnslog("mdns_publish() info=%s, socktypes(%s)=%s", info, socktype, socktypes) for st in socktypes: + if st == "socket": + continue recs = mdns_recs.setdefault(st, []) if socktype=="socket": - assert st=="ssh" + if not st != "ssh": + log.error(f"Error: unexpected {st!r} socket type for {socktype}") + continue host = "*" iport = get_ssh_port() if not iport: