Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for switch back to localhost (why did this not work? it worked all the time)

orbiterd2f7ce27a7ff
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", "");