Fixed chat not working when UserAllowedIP is set.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-10 11:43:21 -07:00
parent dece20ac93
commit c3f084aeee
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.1-z",
"version": "0.4.2-a",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -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()');