add nodeid to info in console #6097

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-05-17 14:41:51 +01:00
parent 77d268d064
commit e8da6a607c

View File

@ -4899,6 +4899,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
response += '\r\nServer Connection: ' + mesh.isControlChannelConnected + ', State: ' + meshServerConnectionState + '.';
var oldNodeId = db.Get('OldNodeId');
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
response += '\r\nNode ID: ' + Buffer.from(require('_agentNodeId')(), 'hex').toString('base64').replace(/\+/g, '@').replace(/\//g, '$');
if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
response += '\r\nApplication Location: ' + process.cwd();
//response += '\r\Debug Console: ' + debugConsole + '.';