mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Rolled back two changes to see if it affects 2FA.
This commit is contained in:
parent
cdd1edfd61
commit
840133b3d3
6 changed files with 12 additions and 17 deletions
8
agents/meshcore.min.js
vendored
8
agents/meshcore.min.js
vendored
|
@ -1672,15 +1672,11 @@ function createMeshCore(agent)
|
|||
}
|
||||
/*
|
||||
case 'npm': {
|
||||
var child = require('child_process').execFile('C:\\Program Files\\nodejs\\node.exe', ['-v']);
|
||||
var child = require('child_process').execFile('C:\\Program Files\\nodejs\\node.exe', ['node.exe', '-v']);
|
||||
child.stdout.str = '';
|
||||
child.stdout.on('data', function (chunk) {
|
||||
sendConsoleText(chunk, sessionid);
|
||||
//this.str += chunk.toString();
|
||||
});
|
||||
child.stdout.on('data', function (chunk) { this.str += chunk.toString(); });
|
||||
child.waitExit();
|
||||
response = 'Response: ' + child.stdout.str;
|
||||
//exec('npm -v', function (error, stdout, stderr) { console.log('stdout: ', stdout); });
|
||||
break;
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue