Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

store the staticIP(dyndns) in seed, not the real IP

allo8997b838067e
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);
}
}