Fix logins on raw IPs in chrome
This commit is contained in:
parent
a88e8b8b7b
commit
400e15dea8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue