*) 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:
theli 2006-05-15 10:50:10 +00:00
parent f331def5d8
commit b4ab183518

View File

@ -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));