chore: remove serverlog code
This commit is contained in:
parent
59993757e6
commit
9d74615f31
2 changed files with 2 additions and 13 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
## 0.4.0 [TBD]
|
## 0.4.0 [TBD]
|
||||||
### BREAKING
|
### 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
|
### 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.
|
- 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
|
- Updated socket.io to v4.1.1
|
||||||
|
|
|
||||||
|
|
@ -147,20 +147,8 @@ module.exports = function appSocket(socket) {
|
||||||
conn.end();
|
conn.end();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// poc to log commands from client
|
|
||||||
// if (socket.request.session.ssh.serverlog.client) var dataBuffer;
|
|
||||||
socket.on('data', (data) => {
|
socket.on('data', (data) => {
|
||||||
stream.write(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) => {
|
socket.on('control', (controlData) => {
|
||||||
switch (controlData) {
|
switch (controlData) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue