diff --git a/agents/MeshCentralRouter.exe b/agents/MeshCentralRouter.exe index 54882332..1154b94d 100644 Binary files a/agents/MeshCentralRouter.exe and b/agents/MeshCentralRouter.exe differ diff --git a/meshrelay.js b/meshrelay.js index 5e69c3c5..950e1e13 100644 --- a/meshrelay.js +++ b/meshrelay.js @@ -1188,7 +1188,10 @@ function CreateLocalRelayEx(parent, ws, req, domain, user, cookie) { ws.flushSink = function () { try { ws._socket.resume(); } catch (ex) { console.log(ex); } }; // When data is received from the mesh relay web socket - ws.on('message', function (data) { if (typeof data != 'string') { try { ws._socket.pause(); obj.client.write(data, ws.flushSink); } catch (ex) { } } }); // Perform relay + ws.on('message', function (data) { + if (typeof data != 'string') { try { ws._socket.pause(); obj.client.write(data, ws.flushSink); } catch (ex) { } } + else { console.log("RelayString: " + data); } + }); // Perform relay // If error, close both sides of the relay. ws.on('error', function (err) { parent.relaySessionErrorCount++; obj.close(); });