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
1 changed files with 1 additions and 1 deletions

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;