Factored common code with DigestURL.hosthash()

pull/105/head
luccioman 8 years ago
parent 9cea7cbb10
commit f793d97e56

@ -331,7 +331,7 @@ public class HostBrowser {
prop.putHTML("outbound_host", host);
if (authorized) prop.putHTML("outbound_admin_host", host); //used for WebStructurePicture_p link
prop.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 index

@ -119,7 +119,7 @@ public class webstructure {
try {
url = new DigestURL(about.indexOf("://") >= 0 ? about : "http://" + about); // accept also domains
urlhash = url.hash();
hosthash = ASCII.String(urlhash, 6, 6);
hosthash = url.hosthash();
} catch (final MalformedURLException e) {
}
}

Loading…
Cancel
Save