From 5c7d65546be161a106b183ea8eba5d7e08fac5ac Mon Sep 17 00:00:00 2001 From: tigerbot Date: Mon, 5 Jun 2017 11:00:54 -0600 Subject: [PATCH] filter out remote groups with no remotes left --- wstunneld.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wstunneld.js b/wstunneld.js index 8559621..ff75f96 100644 --- a/wstunneld.js +++ b/wstunneld.js @@ -29,7 +29,7 @@ Devices.remove = function (store, servername, device) { return devices.splice(index, 1)[0]; }; Devices.list = function (store, servername) { - if (store[servername]) { + if (store[servername] && store[servername].length) { return store[servername]; } // There wasn't an exact match so check any of the wildcard domains, sorted longest