From 8997b838067ee93ba7968b07e10ead6676ba1582 Mon Sep 17 00:00:00 2001 From: allo Date: Fri, 3 Mar 2006 17:33:05 +0000 Subject: [PATCH] store the staticIP(dyndns) in seed, not the real IP git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1809 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/hello.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index da68859cf..7ecb809b0 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -128,11 +128,14 @@ public final class hello { } // we are only allowed to connect to the client IP address if it's not our own address - if (!isLocalIP && ! serverCore.useStaticIP) { + if (!isLocalIP) { serverCore.checkInterruption(); prop.put(yacySeed.YOURIP, clientip); - remoteSeed.put(yacySeed.IP, clientip); + if(reportedip!=null && !reportedip.equals("")) + remoteSeed.put(yacySeed.IP, reportedip); + else + remoteSeed.put(yacySeed.IP, clientip); urls = yacyClient.queryUrlCount(remoteSeed); } }