Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Restored peer URL host name stripping removed from previous commit.
lucciomanc6e1befbcac9
diff --git a/source/net/yacy/peers/Protocol.java b/source/net/yacy/peers/Protocol.javaindex 8f5345681..cbc23babc 100644--- a/source/net/yacy/peers/Protocol.java+++ b/source/net/yacy/peers/Protocol.java@@ -237,7 +237,7 @@ public final class Protocol {} else {try {// patch the remote peer address to avoid that remote peers spoof the network with wrong addresses- String host = targetBaseURL.getHost();+ String host = Domains.stripToHostName(targetBaseURL.getHost());InetAddress ie = Domains.dnsResolve(host);otherPeer = Seed.genRemoteSeed(seed, false, ie.getHostAddress());if ( !otherPeer.hash.equals(targetHash) ) {@@ -346,7 +346,7 @@ public final class Protocol {} else {try {if ( i == 1 ) {- String host = targetBaseURL.getHost();+ String host = Domains.stripToHostName(targetBaseURL.getHost());InetAddress ia = Domains.dnsResolve(host);if (ia == null) continue;host = ia.getHostAddress(); // the actual address of the target as we had been successful when contacting them is patched here