Removed 404 page until a fix is found.

This commit is contained in:
Saint-Hilaire 2019-08-17 16:42:04 -04:00
parent 8efe4a3ebe
commit e5d4d40d95
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.0-a",
"version": "0.4.0-c",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -3127,11 +3127,13 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
// Indicates to ExpressJS that the public folder should be used to serve static files.
obj.app.use(url, obj.express.static(obj.parent.webPublicPath));
/*
// Handle 404 error
obj.app.use(function (req, res, next) {
var domain = getDomain(req);
res.status(404).render(obj.path.join(obj.parent.webViewsPath, isMobileBrowser(req) ? 'error404-mobile' : 'error404'), { title: domain.title, title2: domain.title2 });
})
});
*/
// Start regular disconnection list flush every 2 minutes.
obj.wsagentsDisconnectionsTimer = setInterval(function () { obj.wsagentsDisconnections = {}; }, 120000);