// reject unknown peers: this does not appear fair, but anonymous senders are dangerous
// reject unknown peers: this does not appear fair, but anonymous senders are dangerous
sb.getLog().logFine("RankingTransmission: rejected unknown peer '"+otherpeer+"', current IP "+header.get("CLIENTIP","unknown"));
returnprop;
}
otherPeer.setLastSeenUTC();
if(filename.indexOf("..")>=0){
// reject paths that contain '..' because they 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"));
sb.getLog().logFine("RankingTransmission: rejected wrong path '"+filename+"' from peer "+otherPeer.getName()+"/"+otherPeer.getPublicAddress()+", 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"));