Respect x-forwarded-proto for ACP

This commit is contained in:
calzoneman 2015-08-17 20:20:58 -07:00
parent 1e312ded4c
commit 26eb3502be
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ function checkAdmin(cb) {
*/
function handleAcp(req, res, user) {
var sio;
if (req.secure) {
if (req.secure || req.header("x-forwarded-proto") === "https") {
sio = Config.get("https.domain") + ":" + Config.get("https.default-port");
} else {
sio = Config.get("io.domain") + ":" + Config.get("io.default-port");