Skip to content

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

fix for bad message about empty pw if localhost is allowed to access without pw

orbiter2ba6f4e92dd7
diff --git a/htroot/Status.java b/htroot/Status.java
index 64da94883..982d59686 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -131,7 +131,7 @@ public class Status {
}
// password protection
- if (sb.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "").length() == 0) {
+ if ((sb.getConfig(httpd.ADMIN_ACCOUNT_B64MD5, "").length() == 0) && (!sb.getConfigBool("adminAccountForLocalhost", false))) {
prop.put("protection", "0"); // not protected
prop.put("urgentSetPassword", "1");
} else {