mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
If needed, auto-create missing device in agent group type when CIRA connects.
This commit is contained in:
parent
35fb52af76
commit
2d3b1fe68a
3 changed files with 104 additions and 9 deletions
|
@ -2322,6 +2322,7 @@
|
|||
for (var m in message.nodes) {
|
||||
for (var n in message.nodes[m]) {
|
||||
if (message.nodes[m][n]._id == null) { console.log('Invalid node (' + n + '): ' + JSON.stringify(message.nodes)); continue; }
|
||||
if (message.nodes[m][n].name == null) { message.nodes[m][n].name = '???'; }
|
||||
message.nodes[m][n].namel = message.nodes[m][n].name.toLowerCase();
|
||||
if (message.nodes[m][n].rname) { message.nodes[m][n].rnamel = message.nodes[m][n].rname.toLowerCase(); } else { message.nodes[m][n].rnamel = message.nodes[m][n].namel; }
|
||||
message.nodes[m][n].meshnamel = meshes[m]?meshes[m].name.toLowerCase():'*';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue