mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Test
This commit is contained in:
parent
f6c71a63d0
commit
cfd428a139
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue