Skip to content

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

integrated tor-patch for crawling, if yacyDebugMode is set. (replaces: http://yacy.deruwe.de/overlay/net-misc/yacy-tor/files/disable_dns_checks-svn3132.patch)

allof04097c3dd3d
diff --git a/source/de/anomic/plasma/plasmaCrawlStacker.java b/source/de/anomic/plasma/plasmaCrawlStacker.java
index d95d986b4..2791114fe 100644
--- a/source/de/anomic/plasma/plasmaCrawlStacker.java
+++ b/source/de/anomic/plasma/plasmaCrawlStacker.java
@@ -297,7 +297,9 @@ public final class plasmaCrawlStacker {
// check if ip is local ip address
checkInterruption(); // TODO: this is protocol specific
InetAddress hostAddress = httpc.dnsResolve(nexturl.getHost());
- if (hostAddress == null) {
+ if(this.sb.getConfig("yacyDebugMode", "true").equals("true")){
+ //just ignore the check in debugmode (useful for tor(.eff.org)
+ }else if (hostAddress == null) {
// if a http proxy is configured name resolution may not work
if (this.sb.remoteProxyConfig == null || !this.sb.remoteProxyConfig.useProxy()) {
reason = plasmaCrawlEURL.DENIED_UNKNOWN_HOST;