diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index 6c5becde0..87e172e80 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -57,12 +57,13 @@ public final class hello { final serverObjects prop = new serverObjects(); final long start = System.currentTimeMillis(); prop.put("message", "none"); - final String clientip = header.get(HeaderFramework.CONNECTION_PROP_CLIENTIP, ""); // read an artificial header addendum + String clientip = header.get(HeaderFramework.CONNECTION_PROP_CLIENTIP); // read an artificial header addendum //ConcurrentLog.info("**hello-DEBUG**", "client request from = " + clientip); final InetAddress ias = Domains.dnsResolve(clientip); long time = System.currentTimeMillis(); final long time_dnsResolve = System.currentTimeMillis() - time; if (ias == null) { + if (clientip == null) clientip = ""; Network.log.info("hello/server: failed contacting seed; clientip not resolvable (clientip=" + clientip + ", time_dnsResolve=" + time_dnsResolve + ")"); prop.put("message", "cannot resolve your IP from your reported location " + clientip); return prop;