mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-23 06:34:54 +03:00
Merge pull request #688 from jsastriawan/master
Update apfserver node search to fix authentication issue
This commit is contained in:
commit
b464267f43
@ -282,7 +282,7 @@ module.exports.CreateApfServer = function (parent, db, args) {
|
|||||||
});
|
});
|
||||||
} else if (mesh.mtype == 2) { // If this is a agent mesh, search the mesh for this device UUID
|
} else if (mesh.mtype == 2) { // If this is a agent mesh, search the mesh for this device UUID
|
||||||
// Intel AMT GUID (socket.tag.SystemId) will be used to search the node
|
// Intel AMT GUID (socket.tag.SystemId) will be used to search the node
|
||||||
obj.db.getAmtUuidNode(mesh._id, socket.tag.SystemId, function (err, nodes) { // TODO: May need to optimize this request with indexes
|
obj.db.getAmtUuidNode(socket.tag.SystemId, function (err, nodes) { // TODO: May need to optimize this request with indexes
|
||||||
if ((nodes == null) || (nodes.length !== 1)) {
|
if ((nodes == null) || (nodes.length !== 1)) {
|
||||||
// New APF connection for unknown node, disconnect.
|
// New APF connection for unknown node, disconnect.
|
||||||
unknownNodeCount++;
|
unknownNodeCount++;
|
||||||
|
Loading…
Reference in New Issue
Block a user