Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Factored common code with DigestURL.hosthash()
lucciomanf793d97e56ae
diff --git a/htroot/HostBrowser.java b/htroot/HostBrowser.javaindex b90b2d8f0..9855d06c0 100644--- a/htroot/HostBrowser.java+++ b/htroot/HostBrowser.java@@ -331,7 +331,7 @@ public class HostBrowser {prop.putHTML("outbound_host", host);if (authorized) prop.putHTML("outbound_admin_host", host); //used for WebStructurePicture_p linkprop.putHTML("inbound_host", host);- String hosthash = ASCII.String(uri.hash(), 6, 6);+ String hosthash = uri.hosthash();String[] pathparts = uri.getPaths();// get all files for a specific host from the indexdiff --git a/htroot/api/webstructure.java b/htroot/api/webstructure.javaindex f43418499..7f1fbdd98 100644--- a/htroot/api/webstructure.java+++ b/htroot/api/webstructure.java@@ -119,7 +119,7 @@ public class webstructure {try {url = new DigestURL(about.indexOf("://") >= 0 ? about : "http://" + about); // accept also domainsurlhash = url.hash();- hosthash = ASCII.String(urlhash, 6, 6);+ hosthash = url.hosthash();} catch (final MalformedURLException e) {}}