From 78512e85cb4313e9c1317a9070dcd771141689e3 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 28 Apr 2020 14:19:42 -0700 Subject: [PATCH] Multiplexor Fix. --- meshdesktopmultiplex.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meshdesktopmultiplex.js b/meshdesktopmultiplex.js index 35e74f35..356b6e39 100644 --- a/meshdesktopmultiplex.js +++ b/meshdesktopmultiplex.js @@ -801,6 +801,7 @@ module.exports.CreateMeshRelay = function (parent, ws, req, domain, user, cookie if (obj.id == null) { try { obj.close(); } catch (e) { } return null; } // Attempt to connect without id, drop this. ws._socket.setKeepAlive(true, 240000); // Set TCP keep alive + /* // Validate that the id is valid, we only need to do this on non-authenticated sessions. // TODO: Figure out when this needs to be done. if ((user == null) && (!parent.args.notls)) { @@ -811,6 +812,7 @@ module.exports.CreateMeshRelay = function (parent, ws, req, domain, user, cookie if ((Date.now() - parseInt(ids[1])) > 120000) { ws.close(); delete obj.id; return null; } // Expired time, drop this. obj.id = ids[0]; } + */ // Setup the agent PING/PONG timers if ((typeof parent.parent.args.agentping == 'number') && (obj.pingtimer == null)) { obj.pingtimer = setInterval(sendPing, parent.parent.args.agentping * 1000); } diff --git a/package.json b/package.json index 9aa27beb..89a8a0e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.5.16", + "version": "0.5.17", "keywords": [ "Remote Management", "Intel AMT",