Fix logins on raw IPs in chrome

This commit is contained in:
calzoneman 2015-02-21 14:48:24 -06:00
parent a88e8b8b7b
commit 400e15dea8

View file

@ -202,7 +202,7 @@ function preprocessConfig(cfg) {
var root = cfg.http["root-domain"];
root = root.replace(/^\.*/, "");
cfg.http["root-domain"] = root;
if (root.indexOf(".") !== -1) {
if (root.indexOf(".") !== -1 && !net.isIP(root)) {
root = "." + root;
}
cfg.http["root-domain-dotted"] = root;