diff --git a/lib/web/acp.js b/lib/web/acp.js index 17122f3b..707c6a8b 100644 --- a/lib/web/acp.js +++ b/lib/web/acp.js @@ -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");