From cfd428a13920bec0916c13fda5b3241e0fd9e2ff Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 31 Dec 2020 11:16:47 -0800 Subject: [PATCH] Test --- meshagent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshagent.js b/meshagent.js index e83e1631..07e4d916 100644 --- a/meshagent.js +++ b/meshagent.js @@ -1038,7 +1038,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { // Verify the agent signature function processAgentSignature(msg) { - if ((args.ignoreagenthashcheck !== true) && (domain.ignoreagenthashcheck !== true)) { + if (isIgnoreHashCheck() == false) { var verified = false; if (msg.length != 384) { @@ -1682,6 +1682,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { // Return true if we need to ignore the agent hash check function isIgnoreHashCheck() { + // Test if ((args.ignoreagenthashcheck === true) || (domain.ignoreagenthashcheck === true)) return true; // Check site wide exceptions