Skip to content

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

*) correcting validation of proxyStoreHTCache in ProxyIndexingMonitor configuration See: http://www.yacy-forum.de/viewtopic.php?p=22663

thelid2dc848902ab
diff --git a/htroot/ProxyIndexingMonitor_p.java b/htroot/ProxyIndexingMonitor_p.java
index acb199de5..60345b34b 100644
--- a/htroot/ProxyIndexingMonitor_p.java
+++ b/htroot/ProxyIndexingMonitor_p.java
@@ -88,7 +88,7 @@ public class ProxyIndexingMonitor_p {
if (newProxyPrefetchDepth < 0) newProxyPrefetchDepth = 0;
if (newProxyPrefetchDepth > 20) newProxyPrefetchDepth = 20; // self protection ?
env.setConfig("proxyPrefetchDepth", Integer.toString(newProxyPrefetchDepth));
- boolean proxyStoreHTCache = (post.get("proxyStoreHTCache", "")).equals("on");
+ boolean proxyStoreHTCache = post.containsKey("proxyStoreHTCache");
env.setConfig("proxyStoreHTCache", (proxyStoreHTCache) ? "true" : "false");
boolean proxyCrawlOrder = post.containsKey("proxyCrawlOrder");
env.setConfig("proxyCrawlOrder", proxyCrawlOrder ? "true" : "false");