Skip to content

Commit

Permalink
Added invite HTTP to HTTPS redirect (#4622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Oct 25, 2022
1 parent cc7670c commit 2981217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redirserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
}

Expand Down

0 comments on commit 2981217

Please sign in to comment.