From 400e15dea8f494c76480fe62910845bad915fb5b Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 21 Feb 2015 14:48:24 -0600 Subject: [PATCH] Fix logins on raw IPs in chrome --- lib/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.js b/lib/config.js index f6b17453..0859ee50 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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;