From 29776e33bdfe326a4dca1c51848c4c9286a61b5a Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 10 Oct 2019 11:43:21 -0700 Subject: [PATCH] Fixed chat not working when UserAllowedIP is set. --- package.json | 2 +- webserver.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fe9aed58..f10ad438 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.1-z", + "version": "0.4.2-a", "keywords": [ "Remote Management", "Intel AMT", diff --git a/webserver.js b/webserver.js index a281f2b9..19977b52 100644 --- a/webserver.js +++ b/webserver.js @@ -1697,7 +1697,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) { // Render the messenger application. function handleMessengerRequest(req, res) { - const domain = checkUserIpAddress(req, res); + const domain = getDomain(req); if (domain == null) { parent.debug('web', 'handleMessengerRequest: no domain'); res.sendStatus(404); return; } parent.debug('web', 'handleMessengerRequest()');