Skip to content

Commit

Permalink
integrated tor-patch for crawling, if yacyDebugMode is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
allo committed Mar 11, 2007
1 parent 22fe14f commit f04097c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/de/anomic/plasma/plasmaCrawlStacker.java
Expand Up @@ -297,7 +297,9 @@ public String stackCrawl(String nexturlString, String referrerString, String ini
// 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;
Expand Down

0 comments on commit f04097c

Please sign in to comment.