From 9d74615f315627077ac947dbe212b3e286f1aaca Mon Sep 17 00:00:00 2001 From: Bill Church Date: Wed, 19 May 2021 14:16:34 +0000 Subject: [PATCH] chore: remove serverlog code --- ChangeLog.md | 3 ++- app/server/socket.js | 12 ------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 0239d50..1016b57 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,7 +1,8 @@ # Change Log ## 0.4.0 [TBD] ### BREAKING -- Disabled ssh.serverlog.client option, this disables the POC which allowed for logging of the data sent between the client/server to the console.log. Code still exists but is commented out in roughly lines 103-116 of ./app/server/socket.js +- Disabled ssh.serverlog.client option, this disables the POC which allowed for logging of the data sent between the client/server to the console.log. +- Dropping support for node versions under 14 ### Changes - Removed HTML menu code from ./app/server/socket.js, the menu is now fully laid out in the ./app/client/src/index.html and the option elements are hidden by default. Not sure why it wasn't done this way from the start, but there it is. - Updated socket.io to v4.1.1 diff --git a/app/server/socket.js b/app/server/socket.js index c5942e7..3c5ef3a 100644 --- a/app/server/socket.js +++ b/app/server/socket.js @@ -147,20 +147,8 @@ module.exports = function appSocket(socket) { conn.end(); return; } - // poc to log commands from client - // if (socket.request.session.ssh.serverlog.client) var dataBuffer; socket.on('data', (data) => { stream.write(data); - // poc to log commands from client - /* if (socket.request.session.ssh.serverlog.client) { - if (data === '\r') { - console.log(`serverlog.client: ${socket.request.session.id}/${socket.id} - host: ${socket.request.session.ssh.host} command: ${dataBuffer}`); - dataBuffer = undefined; - } else { - dataBuffer = (dataBuffer) ? dataBuffer + data : data; - } - } */ }); socket.on('control', (controlData) => { switch (controlData) {