From d50ad1521a913c03e2b60a332bb7e46045a1ddcf Mon Sep 17 00:00:00 2001 From: theli Date: Wed, 29 Jun 2005 11:08:47 +0000 Subject: [PATCH] *) correcting logging statement git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@335 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/hello.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index de1d9d6c2..9d7d8f639 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -80,6 +80,7 @@ public class hello { // we easily know the caller's IP: String clientip = (String) header.get("CLIENTIP", ""); // read an artificial header addendum String reportedip = remoteSeed.get("IP", ""); + String reportedPeerType = remoteSeed.get("PeerType", "junior"); float clientversion = remoteSeed.getVersion(); int urls = -1; @@ -121,7 +122,7 @@ public class hello { // no connection here, instead store junior in connection cache if ((remoteSeed.hash != null) && (remoteSeed.isProper())) yacyCore.peerActions.peerPing(remoteSeed); } - if (!((String)prop.get("yourtype")).equals(remoteSeed.get("PeerType", "junior"))) { + if (!((String)prop.get("yourtype")).equals(reportedPeerType)) { yacyCore.log.logInfo("hello: changing remote peer '" + remoteSeed.getName() + "' [" + reportedip + "] peerType to '" + prop.get("yourtype") + "'."); }