mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) Bugfix for NullpointerException if the seeds IP could not be resolved
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2099 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
f331def5d8
commit
b4ab183518
|
@ -1419,6 +1419,7 @@ public final class httpd implements serverHandler {
|
|||
if (thisSeedIP == null || thisSeedPort == null) return false;
|
||||
InetAddress seedInetAddress = httpc.dnsResolve(thisSeedIP);
|
||||
InetAddress hostInetAddress = httpc.dnsResolve(hostName);
|
||||
if (seedInetAddress == null || hostInetAddress == null) return false;
|
||||
|
||||
// if it's equal, the hostname points to this seed
|
||||
return (seedInetAddress.equals(hostInetAddress));
|
||||
|
|
Loading…
Reference in New Issue
Block a user