From 7c5f8f997a6b5c6607f2400ce73c90f3d5f4852a Mon Sep 17 00:00:00 2001 From: allo Date: Tue, 28 Feb 2006 12:20:19 +0000 Subject: [PATCH] some more staticIP fixes git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1784 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/hello.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}