diff options
| -rw-r--r-- | htroot/ConfigNetwork_p.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/htroot/ConfigNetwork_p.java b/htroot/ConfigNetwork_p.java index 4e5a7ae6f..5c6086165 100644 --- a/htroot/ConfigNetwork_p.java +++ b/htroot/ConfigNetwork_p.java @@ -74,6 +74,12 @@ public class ConfigNetwork_p { // DHT control boolean indexDistribute = "on".equals(post.get("indexDistribute", "")); boolean indexReceive = "on".equals(post.get("indexReceive", "")); + if (!indexReceive) { + // remove heuristics + sb.setConfig("heuristic.site", false); + sb.setConfig("heuristic.scroogle", false); + sb.setConfig("heuristic.blekko", false); + } final boolean robinsonmode = "robinson".equals(post.get("network", "")); if (robinsonmode) { indexDistribute = false; |
