Fix ACP reading wrong config key
This commit is contained in:
parent
64980bc293
commit
48e808c8ea
|
@ -225,7 +225,7 @@ function preprocessConfig(cfg) {
|
|||
// HTTP/HTTPS domains with port numbers
|
||||
if (!cfg.http["full-address"]) {
|
||||
var httpfa = cfg.http.domain;
|
||||
if (cfg.http.port !== 80) {
|
||||
if (cfg.http["default-port"] !== 80) {
|
||||
httpfa += ":" + cfg.http["default-port"];
|
||||
}
|
||||
cfg.http["full-address"] = httpfa;
|
||||
|
@ -233,7 +233,7 @@ function preprocessConfig(cfg) {
|
|||
|
||||
if (!cfg.https["full-address"]) {
|
||||
var httpsfa = cfg.https.domain;
|
||||
if (cfg.https.port !== 443) {
|
||||
if (cfg.https["default-port"] !== 443) {
|
||||
httpsfa += ":" + cfg.https["default-port"];
|
||||
}
|
||||
cfg.https["full-address"] = httpsfa;
|
||||
|
|
|
@ -43,9 +43,9 @@ function checkAdmin(cb) {
|
|||
function handleAcp(req, res, user) {
|
||||
var sio;
|
||||
if (req.secure) {
|
||||
sio = Config.get("https.domain") + ":" + Config.get("https.port");
|
||||
sio = Config.get("https.domain") + ":" + Config.get("https.default-port");
|
||||
} else {
|
||||
sio = Config.get("io.domain") + ":" + Config.get("io.port");
|
||||
sio = Config.get("io.domain") + ":" + Config.get("io.default-port");
|
||||
}
|
||||
sio += "/socket.io/socket.io.js";
|
||||
|
||||
|
|
Loading…
Reference in a new issue