Fixed CIRA session recording issue.
This commit is contained in:
parent
9a4376bd59
commit
cdd1edfd61
|
@ -1671,6 +1671,20 @@ function createMeshCore(agent)
|
||||||
break;
|
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':
|
case 'border':
|
||||||
{
|
{
|
||||||
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {
|
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {
|
||||||
|
|
|
@ -1671,6 +1671,20 @@ function createMeshCore(agent)
|
||||||
break;
|
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':
|
case 'border':
|
||||||
{
|
{
|
||||||
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {
|
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.4.0-o",
|
"version": "0.4.0-p",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
|
|
@ -2267,7 +2267,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||||
} else {
|
} else {
|
||||||
// Log to recording file
|
// Log to recording file
|
||||||
data = Buffer.from(data, 'binary');
|
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