From d82530e1dbc4f3f65986fd78cafe70fa595f8880 Mon Sep 17 00:00:00 2001 From: tigerbot Date: Fri, 26 May 2017 18:18:06 -0600 Subject: [PATCH] filtering out wildcard domains with no remotes left --- wstunneld.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wstunneld.js b/wstunneld.js index c03eef0..8559621 100644 --- a/wstunneld.js +++ b/wstunneld.js @@ -36,7 +36,7 @@ Devices.list = function (store, servername) { // first so the one with the biggest natural match with be found first. var deviceList = []; Object.keys(store).filter(function (pattern) { - return pattern[0] === '*'; + return pattern[0] === '*' && store[pattern].length; }).sort(function (a, b) { return b.length - a.length; }).some(function (pattern) {