chore: remove serverlog code

This commit is contained in:
Bill Church 2021-05-19 14:16:34 +00:00
parent 59993757e6
commit 9d74615f31
2 changed files with 2 additions and 13 deletions

View file

@ -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

View file

@ -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) {