From ec928334d898d21f3e746ddd52376b220c0254ee Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 26 Jul 2021 15:26:23 +0530 Subject: [PATCH] don't try to pin channels with invalid lengths --- www/common/proxy-manager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 01c22812c..78196cf7c 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -1263,7 +1263,10 @@ define([ Array.prototype.push.apply(result, sfChannels); } - return result; + return result.filter(function (channel) { + if (typeof(channel) !== 'string') { return; } + return [32, 48].indexOf(channel.length) !== -1; + }); }; var addPad = function (Env, path, pad, cb) {