fix / workaround for

http://forum.yacy-websuche.de/viewtopic.php?f=5&t=4750
+ Seed.hash should be final
pull/1/head
sixcooler 11 years ago
parent c0ff91b9a8
commit 8a96140f92

@ -119,6 +119,12 @@ public final class hello {
return prop;
}
if (remoteSeed.getName().equals(sb.peers.mySeed().getName())) {
// reject a ping with my name
prop.put("message", "You are using my name");
return prop;
}
if (sb.isRobinsonMode() && !sb.isPublicRobinson()) {
// if we are a robinson cluster, answer only if this client is known by our network definition
prop.put("message", "I am robinson, I do not answer");

@ -185,7 +185,7 @@ public class Seed implements Cloneable, Comparable<Seed>, Comparator<Seed>
// class variables
/** the peer-hash */
public String hash;
public final String hash;
/** a set of identity founding values, eg. IP, name of the peer, YaCy-version, ... */
private final ConcurrentMap<String, String> dna;
private String alternativeIP = null;

Loading…
Cancel
Save