From d2f7ce27a7ff72f27a8090be72c65f6a114258ed Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 27 Feb 2014 23:30:56 +0100 Subject: [PATCH] fix for switch back to localhost (why did this not work? it worked all the time) --- htroot/ConfigAccounts_p.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htroot/ConfigAccounts_p.java b/htroot/ConfigAccounts_p.java index 4bd5c3c1b..5e3090e90 100644 --- a/htroot/ConfigAccounts_p.java +++ b/htroot/ConfigAccounts_p.java @@ -34,7 +34,6 @@ import java.util.HashMap; import java.util.Iterator; import java.util.Map; import net.yacy.cora.order.Digest; -import net.yacy.cora.protocol.Domains; import net.yacy.cora.protocol.RequestHeader; import net.yacy.cora.util.ConcurrentLog; import net.yacy.data.UserDB; @@ -55,7 +54,7 @@ public class ConfigAccounts_p { // admin password boolean localhostAccess = sb.getConfigBool(SwitchboardConstants.ADMIN_ACCOUNT_FOR_LOCALHOST, false); if (post != null && post.containsKey("setAdmin")) { - localhostAccess = Domains.isLocalhost(post.get("access", "")); + localhostAccess = post.get("access", "").equals("localhost"); final String user = post.get("adminuser", ""); final String pw1 = post.get("adminpw1", ""); final String pw2 = post.get("adminpw2", "");