From 6983dff3346caca50a8b3d45b9127628660c6711 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 11 Oct 2014 09:02:12 +0200 Subject: [PATCH] explain crawl denial when not switched to intranet mode --- source/net/yacy/crawler/CrawlStacker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/CrawlStacker.java b/source/net/yacy/crawler/CrawlStacker.java index 4c11e08d4..e620d56d8 100644 --- a/source/net/yacy/crawler/CrawlStacker.java +++ b/source/net/yacy/crawler/CrawlStacker.java @@ -542,7 +542,7 @@ public final class CrawlStacker { if (this.acceptLocalURLs && local) return null; if (this.acceptGlobalURLs && !local) return null; final String host = url.getHost(); - if (host == null) return "url.host is null"; + if (host == null) return "url.host is null (you must switch to intranet mode to crawl these sources)"; // check if this is a local address and we are allowed to index local pages: //boolean local = hostAddress.isSiteLocalAddress() || hostAddress.isLoopbackAddress(); //assert local == yacyURL.isLocalDomain(url.hash()); // TODO: remove the dnsResolve above!