mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-17 17:30:00 -04:00
Test
This commit is contained in:
parent
f6c71a63d0
commit
cfd428a139
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user