Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
protection against self-ping (may be cause by fraud attempts)
Michael Peter Christen2674d28ef4b5
diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.javaindex 014ab723b..7e27d4684 100644--- a/htroot/yacy/hello.java+++ b/htroot/yacy/hello.java@@ -113,8 +113,14 @@ public final class hello {final String reportedPeerType = remoteSeed.get(Seed.PEERTYPE, Seed.PEERTYPE_JUNIOR);final double clientversion = remoteSeed.getVersion();+ if ((reportedip + ':' + remoteSeed.getPort()).equals(sb.peers.mySeed().getPublicAddress())) {+ // reject a self-ping+ prop.put("message", "I am I");+ return prop;+ }+if (sb.isRobinsonMode() && !sb.isPublicRobinson()) {- // if we are a robinson cluster, answer only if this client is known by our network definition+ // if we are a robinson cluster, answer only if this client is known by our network definitionprop.put("message", "I am robinson, I do not answer");return prop;}