Removed 404 page until a fix is found.

Saint-Hilaire committed Aug 17, 2019 at 16:42 UTC e5d4d40d953fa5b37774dea4aa02de0400305451
2 files changed +4 -2
package.json
+1 -1
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.4.0-a",
3 + "version": "0.4.0-c",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",
webserver.js
+3 -1
@@ -3127,11 +3127,13 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
3127 // Indicates to ExpressJS that the public folder should be used to serve static files.
3128 obj.app.use(url, obj.express.static(obj.parent.webPublicPath));
3129
3130 +/*
3131 // Handle 404 error
3132 obj.app.use(function (req, res, next) {
3133 var domain = getDomain(req);
3134 res.status(404).render(obj.path.join(obj.parent.webViewsPath, isMobileBrowser(req) ? 'error404-mobile' : 'error404'), { title: domain.title, title2: domain.title2 });
3134 - })
3135 + });
3136 +*/
3137
3138 // Start regular disconnection list flush every 2 minutes.
3139 obj.wsagentsDisconnectionsTimer = setInterval(function () { obj.wsagentsDisconnections = {}; }, 120000);