diff --git a/package.json b/package.json index f6fd6446..c1aca61b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.0-a", + "version": "0.4.0-c", "keywords": [ "Remote Management", "Intel AMT", diff --git a/webserver.js b/webserver.js index da9bffea..7ecdcf4e 100644 --- a/webserver.js +++ b/webserver.js @@ -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);