*) Bugfix. recipient peer was accidentally displayed as source peer of a url transmission.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@495 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 0211c4f297
commit 0610e83468

@ -84,18 +84,18 @@ public class transferURL {
for (int i = 0; i < urlc; i++) {
urls = (String) post.get("url" + i);
if (urls == null) {
yacyCore.log.logDebug("transferURL: got null URL-string from peer " + youare);
yacyCore.log.logDebug("transferURL: got null URL-string from peer " + iam);
} else {
lEntry = switchboard.urlPool.loadedURL.newEntry(urls, true);
if ((lEntry != null) && (blockBlacklist)) {
if (switchboard.urlBlacklist.isListed(lEntry.url().getHost().toLowerCase(), lEntry.url().getPath())) {
yacyCore.log.logDebug("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + youare);
yacyCore.log.logDebug("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + iam);
lEntry = null;
}
}
if (lEntry != null) {
switchboard.urlPool.loadedURL.addEntry(lEntry, iam, iam, 3);
yacyCore.log.logDebug("transferURL: received URL '" + lEntry.url() + "' from peer " + youare);
yacyCore.log.logDebug("transferURL: received URL '" + lEntry.url() + "' from peer " + iam);
received++;
}
}

Loading…
Cancel
Save