Skip to content

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

correction of correction to port-forwarding

orbiter38747857c207
diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java
index c69a58af6..2240bd601 100644
--- a/htroot/yacy/hello.java
+++ b/htroot/yacy/hello.java
@@ -89,8 +89,7 @@ public class hello {
urls = yacyClient.queryUrlCount(remoteSeed);
// if this was not successful, we try to use the reported ip
- if ((urls < 0) &&
- (!remoteSeed.get("IP","").equalsIgnoreCase(yourip))) {
+ if ((urls < 0) && (!(reportedip.equals(yourip)))) {
// the other peer does not respond under the ip it reported
// we try again using the ip we got from the http header
remoteSeed.put("IP", reportedip);