diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index 7e27d4684..8941813a2 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -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"); diff --git a/source/net/yacy/peers/Seed.java b/source/net/yacy/peers/Seed.java index 23e126ad8..0765a14f2 100644 --- a/source/net/yacy/peers/Seed.java +++ b/source/net/yacy/peers/Seed.java @@ -185,7 +185,7 @@ public class Seed implements Cloneable, Comparable, Comparator // 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 dna; private String alternativeIP = null;