mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-22 09:14:38 -04:00
*) Bugfix for name resolution in proxy mode
See: http://www.yacy-forum.de/viewtopic.php?p=25241 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2478 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
@ -839,8 +839,10 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
||||
* ========================================================================= */
|
||||
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;
|
||||
|
Reference in New Issue
Block a user