From ffc1610980c68142f56b61b5e31dd7900bf30994 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 13 Apr 2025 16:11:36 +0000 Subject: [PATCH] dont crash if qrcode + mdns + uds --- copyparty/tcpsrv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/tcpsrv.py b/copyparty/tcpsrv.py index 99f178c5..d344dfb9 100644 --- a/copyparty/tcpsrv.py +++ b/copyparty/tcpsrv.py @@ -566,7 +566,7 @@ class TcpSrv(object): ip = None ips = list(t1) + list(t2) qri = self.args.qri - if self.args.zm and not qri: + if self.args.zm and not qri and ips: name = self.args.name + ".local" t1[name] = next(v for v in (t1 or t2).values()) ips = [name] + ips