Test

Ylian Saint-Hilaire committed Dec 31, 2020 at 11:16 UTC cfd428a13920bec0916c13fda5b3241e0fd9e2ff
1 file changed +2 -1
meshagent.js
+2 -1
@@ -1038,7 +1038,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
1038
1039 // Verify the agent signature
1040 function processAgentSignature(msg) {
1041 - if ((args.ignoreagenthashcheck !== true) && (domain.ignoreagenthashcheck !== true)) {
1041 + if (isIgnoreHashCheck() == false) {
1042 var verified = false;
1043
1044 if (msg.length != 384) {
@@ -1682,6 +1682,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
1682
1683 // Return true if we need to ignore the agent hash check
1684 function isIgnoreHashCheck() {
1685 + // Test
1686 if ((args.ignoreagenthashcheck === true) || (domain.ignoreagenthashcheck === true)) return true;
1687
1688 // Check site wide exceptions