Skip to content

Commit

Permalink
*) Bugfix for name resolution in proxy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
theli committed Sep 4, 2006
1 parent 1c8300f commit 9ded4e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/de/anomic/plasma/plasmaSwitchboard.java
Expand Up @@ -839,8 +839,10 @@ synchronized public boolean htEntryStoreProcess(plasmaHTCache.Entry entry) throw
* ========================================================================= */
InetAddress hostAddress = httpc.dnsResolve(entry.url.getHost());
if (hostAddress == null) {
this.log.logFine("Unknown host in URL '" + entry.url + "'. Will not be indexed.");
doIndexing = false;
if (this.remoteProxyConfig == null || !this.remoteProxyConfig.useProxy()) {
this.log.logFine("Unknown host in URL '" + entry.url + "'. Will not be indexed.");
doIndexing = false;
}
} else if (hostAddress.isSiteLocalAddress()) {
this.log.logFine("Host in URL '" + entry.url + "' has private ip address. Will not be indexed.");
doIndexing = false;
Expand Down

0 comments on commit 9ded4e8

Please sign in to comment.