mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-20 09:56:03 -05:00
Test
This commit is contained in:
@@ -1038,7 +1038,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||||||
|
|
||||||
// Verify the agent signature
|
// Verify the agent signature
|
||||||
function processAgentSignature(msg) {
|
function processAgentSignature(msg) {
|
||||||
if ((args.ignoreagenthashcheck !== true) && (domain.ignoreagenthashcheck !== true)) {
|
if (isIgnoreHashCheck() == false) {
|
||||||
var verified = false;
|
var verified = false;
|
||||||
|
|
||||||
if (msg.length != 384) {
|
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
|
// Return true if we need to ignore the agent hash check
|
||||||
function isIgnoreHashCheck() {
|
function isIgnoreHashCheck() {
|
||||||
|
// Test
|
||||||
if ((args.ignoreagenthashcheck === true) || (domain.ignoreagenthashcheck === true)) return true;
|
if ((args.ignoreagenthashcheck === true) || (domain.ignoreagenthashcheck === true)) return true;
|
||||||
|
|
||||||
// Check site wide exceptions
|
// Check site wide exceptions
|
||||||
|
|||||||
Reference in New Issue
Block a user