- cluster definitions can now contain an addition for local ip addresses
- cluster-cluster communication uses the local ip address instead the global address, if one is given
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3624 6c8d7289-2bf4-0310-a012-ef5d649a1542
// reject unknown peers: this does not appear fair, but anonymous senders are dangerous
// reject paths that contain '..' because they are dangerous
if(otherseed==null)sb.getLog().logFine("RankingTransmission: rejected unknown peer '"+otherpeer+"', current IP "+header.get("CLIENTIP","unknown"));
if(filename.indexOf("..")>=0)sb.getLog().logFine("RankingTransmission: rejected wrong path '"+filename+"' from peer "+otherseed.getName()+"/"+otherseed.getAddress()+", current IP "+header.get("CLIENTIP","unknown"));
if(filename.indexOf("..")>=0)sb.getLog().logFine("RankingTransmission: rejected wrong path '"+filename+"' from peer "+otherseed.getName()+"/"+otherseed.getPublicAddress()+", current IP "+header.get("CLIENTIP","unknown"));
@ -251,7 +252,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
publicdoublelastrequestedQueries=0d;
publicinttotalPPM=0;
publicdoubletotalQPM=0d;
publicTreeSetclusterhashes;
publicTreeMapclusterhashes;// map of peerhash(String)/alternative-local-address as ip:port or only ip (String) or null if address in seed should be used
/*
*RemoteProxyconfiguration
@ -864,6 +865,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
// seed from the same IP as the calling client: can be
// the case if there runs another one over a NAT
yacyCore.log.logFine("connect: saved NEW seed (myself IP) "+seed.getAddress());
yacyCore.log.logFine("connect: saved NEW seed (myself IP) "+seed.getPublicAddress());
}else{
// completely new seed
yacyCore.log.logFine("connect: saved NEW "+peerType+" peer '"+seed.getName()+"' from "+seed.getAddress());
yacyCore.log.logFine("connect: saved NEW "+peerType+" peer '"+seed.getName()+"' from "+seed.getPublicAddress());
}
if(peerType.equals(yacySeed.PEERTYPE_SENIOR))
this.seniorConnects++;// update statistics
@ -402,7 +402,7 @@ public class yacyPeerActions {
privatefinalvoiddisconnectPeer(yacySeedseed){
// we do this if we did not get contact with the other peer
yacyCore.log.logFine("connect: no contact to a "+seed.get(yacySeed.PEERTYPE,yacySeed.PEERTYPE_VIRGIN)+" peer '"+seed.getName()+"' at "+seed.getAddress());
yacyCore.log.logFine("connect: no contact to a "+seed.get(yacySeed.PEERTYPE,yacySeed.PEERTYPE_VIRGIN)+" peer '"+seed.getName()+"' at "+seed.getPublicAddress());