add nodeid to info in console #6097

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed May 17, 2024 at 14:41 UTC e8da6a607c4a238fd49399c5f6346bb325cb7643
1 file changed +1
agents/meshcore.js
+1
@@ -4899,6 +4899,7 @@ function processConsoleCommand(cmd, args, rights, sessionid) {
4899 response += '\r\nServer Connection: ' + mesh.isControlChannelConnected + ', State: ' + meshServerConnectionState + '.';
4900 var oldNodeId = db.Get('OldNodeId');
4901 if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
4902 + response += '\r\nNode ID: ' + Buffer.from(require('_agentNodeId')(), 'hex').toString('base64').replace(/\+/g, '@').replace(/\//g, '$');
4903 if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
4904 response += '\r\nApplication Location: ' + process.cwd();
4905 //response += '\r\Debug Console: ' + debugConsole + '.';