Skip to content

Commit

Permalink
add nodeid to info in console Ylianst#6097
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed May 17, 2024
1 parent 77d268d commit e8da6a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agents/meshcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '.';
Expand Down

0 comments on commit e8da6a6

Please sign in to comment.