Fixed CIRA session recording issue.
This commit is contained in:
parent
9a4376bd59
commit
cdd1edfd61
|
@ -1671,6 +1671,20 @@ function createMeshCore(agent)
|
|||
break;
|
||||
}
|
||||
/*
|
||||
case 'npm': {
|
||||
var child = require('child_process').execFile('C:\\Program Files\\nodejs\\node.exe', ['-v']);
|
||||
child.stdout.str = '';
|
||||
child.stdout.on('data', function (chunk) {
|
||||
sendConsoleText(chunk, sessionid);
|
||||
//this.str += chunk.toString();
|
||||
});
|
||||
child.waitExit();
|
||||
response = 'Response: ' + child.stdout.str;
|
||||
//exec('npm -v', function (error, stdout, stderr) { console.log('stdout: ', stdout); });
|
||||
break;
|
||||
}
|
||||
*/
|
||||
/*
|
||||
case 'border':
|
||||
{
|
||||
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {
|
||||
|
|
|
@ -1671,6 +1671,20 @@ function createMeshCore(agent)
|
|||
break;
|
||||
}
|
||||
/*
|
||||
case 'npm': {
|
||||
var child = require('child_process').execFile('C:\\Program Files\\nodejs\\node.exe', ['-v']);
|
||||
child.stdout.str = '';
|
||||
child.stdout.on('data', function (chunk) {
|
||||
sendConsoleText(chunk, sessionid);
|
||||
//this.str += chunk.toString();
|
||||
});
|
||||
child.waitExit();
|
||||
response = 'Response: ' + child.stdout.str;
|
||||
//exec('npm -v', function (error, stdout, stderr) { console.log('stdout: ', stdout); });
|
||||
break;
|
||||
}
|
||||
*/
|
||||
/*
|
||||
case 'border':
|
||||
{
|
||||
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "meshcentral",
|
||||
"version": "0.4.0-o",
|
||||
"version": "0.4.0-p",
|
||||
"keywords": [
|
||||
"Remote Management",
|
||||
"Intel AMT",
|
||||
|
|
|
@ -2267,7 +2267,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
|||
} else {
|
||||
// Log to recording file
|
||||
data = Buffer.from(data, 'binary');
|
||||
recordingEntry(ws.logfile.fd, 2, 2, data, function () { try { ws.send(data); } catch (e) { } }); // TODO: Add TLS support
|
||||
recordingEntry(ws.logfile.fd, 2, 0, data, function () { try { ws.send(data); } catch (e) { } }); // TODO: Add TLS support
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue