Update apfserver node search to fix authentication issue
jsastriawan committed
Nov 26, 2019 at 15:38 UTC
c515d3c2a42db3cc914047beb4cf47c817e4bc07
1 file changed
+1
-1
apfserver.js
+1
-1
@@ -282,7 +282,7 @@ module.exports.CreateApfServer = function (parent, db, args) {
282
});
283
} else if (mesh.mtype == 2) { // If this is a agent mesh, search the mesh for this device UUID
284
// Intel AMT GUID (socket.tag.SystemId) will be used to search the node
285
- obj.db.getAmtUuidNode(mesh._id, socket.tag.SystemId, function (err, nodes) { // TODO: May need to optimize this request with indexes
285
+ obj.db.getAmtUuidNode(socket.tag.SystemId, function (err, nodes) { // TODO: May need to optimize this request with indexes
286
if ((nodes == null) || (nodes.length !== 1)) {
287
// New APF connection for unknown node, disconnect.
288
unknownNodeCount++;