From c4ba7d89a8420c959b54af8ed58f56d6c95a4bea Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 7 Apr 2020 15:17:23 -0700 Subject: [PATCH] Removed IP address filtering for handleMeshSettingsRequest() --- package.json | 2 +- webserver.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4a4c12e2..88d8c968 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.5.1-h", + "version": "0.5.1-i", "keywords": [ "Remote Management", "Intel AMT", diff --git a/webserver.js b/webserver.js index f169cdda..89ebd0a6 100644 --- a/webserver.js +++ b/webserver.js @@ -3509,7 +3509,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { // Handle a request to download a mesh settings obj.handleMeshSettingsRequest = function (req, res) { - const domain = checkUserIpAddress(req, res); + const domain = getDomain(req); if (domain == null) { return; } //if ((domain.id !== '') || (!req.session) || (req.session == null) || (!req.session.userid)) { res.sendStatus(401); return; }