From e8da6a607c4a238fd49399c5f6346bb325cb7643 Mon Sep 17 00:00:00 2001 From: si458 Date: Fri, 17 May 2024 14:41:51 +0100 Subject: [PATCH] add nodeid to info in console #6097 Signed-off-by: si458 --- agents/meshcore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/agents/meshcore.js b/agents/meshcore.js index b9ded0cf..a192ad28 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -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 + '.';