From 2981217a2e6541faccbf68932c5940822dd056d3 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 24 Oct 2022 17:56:05 -0700 Subject: [PATCH] Added invite HTTP to HTTPS redirect (#4622) --- redirserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redirserver.js b/redirserver.js index 2995a716..dc9ee840 100644 --- a/redirserver.js +++ b/redirserver.js @@ -122,7 +122,7 @@ module.exports.CreateRedirServer = function (parent, db, args, func) { if (obj.parent.fs.existsSync(p)) { obj.app.use(url + '.well-known', obj.express.static(p)); } // Setup all of the redirections to HTTPS - const redirections = ['player.htm', 'terms', 'logout', 'MeshServerRootCert.cer', 'mescript.ashx', 'checkmail', 'agentinvite', 'messenger', 'meshosxagent', 'devicepowerevents.ashx', 'downloadfile.ashx', 'userfiles/*', 'webrelay.ashx', 'health.ashx', 'logo.png', 'welcome.jpg']; + const redirections = ['player.htm', 'terms', 'logout', 'MeshServerRootCert.cer', 'mescript.ashx', 'checkmail', 'agentinvite', 'messenger', 'meshosxagent', 'devicepowerevents.ashx', 'downloadfile.ashx', 'userfiles/*', 'webrelay.ashx', 'health.ashx', 'logo.png', 'welcome.jpg', 'invite']; for (i in redirections) { obj.app.get(url + redirections[i], performRedirection); } }