diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index adb10efe8..da68859cf 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -108,7 +108,7 @@ public final class hello { // the request came from if (urls < 0) { boolean isLocalIP = false; - if (serverCore.portForwardingEnabled) { + if (serverCore.portForwardingEnabled || serverCore.useStaticIP) { try { final InetAddress clientAddress = httpc.dnsResolve(clientip); if (clientAddress != null) { @@ -128,7 +128,7 @@ public final class hello { } // we are only allowed to connect to the client IP address if it's not our own address - if (!isLocalIP) { + if (!isLocalIP && ! serverCore.useStaticIP) { serverCore.checkInterruption(); prop.put(yacySeed.YOURIP, clientip); @@ -199,4 +199,4 @@ public final class hello { return prop; } -} \ No newline at end of file +}