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