Fix for #2347

Ylian Saint-Hilaire committed Apr 12, 2021 at 15:36 UTC b4855ba408ce4427c09621238d512745b75acfb3
1 file changed +1 -1
meshrelay.js
+1 -1
@@ -689,7 +689,7 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
689 if (typeof x.action == 'string') {
690 if ((x.action == 'chat') && (typeof x.msg == 'string')) { out = utcDate.toUTCString() + ', ' + (((flags & 2) ? '--> ' : '<-- ') + x.msg + '\r\n'); }
691 else if ((x.action == 'file') && (typeof x.name == 'string') && (typeof x.size == 'number')) { out = utcDate.toUTCString() + ', ' + (((flags & 2) ? '--> ' : '<-- ') + "File Transfer" + ', \"' + x.name + '\" (' + x.size + ' ' + "bytes" + ')\r\n'); }
692 - } else { out = utcDate.toUTCString() + ', ' + data + '\r\n'; }
692 + } else if (x.ctrlChannel == null) { out = utcDate.toUTCString() + ', ' + data + '\r\n'; }
693 } catch (ex) {
694 out = utcDate.toUTCString() + ', ' + data + '\r\n';
695 }