mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed CIRA session recording issue.
This commit is contained in:
parent
9a4376bd59
commit
cdd1edfd61
4 changed files with 30 additions and 2 deletions
|
@ -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')) {
|
||||
|
|
14
agents/meshcore.min.js
vendored
14
agents/meshcore.min.js
vendored
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue