From 416ebfdd68c41d7995ef955efb17482517a19538 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 5 Dec 2022 17:35:12 +0000 Subject: [PATCH] right, windows nic names have whitespace --- copyparty/svchub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/svchub.py b/copyparty/svchub.py index 39b46c40..a031e7a3 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -296,7 +296,8 @@ class SvcHub(object): al.zm_off = al.zm_off or al.z_off al.zs_off = al.zs_off or al.z_off for n in ("zm_on", "zm_off", "zs_on", "zs_off"): - vs = getattr(al, n).replace(" ", ",").split(",") + vs = getattr(al, n).split(",") + vs = [x.strip() for x in vs] vs = [x for x in vs if x] setattr(al, n, vs)