Console: Use full hash for links to RI

for efficient lookup and to prevent display of dup prefixes
This commit is contained in:
zzz
2022-04-06 08:22:12 -04:00
parent 0449589406
commit 66e1c94bee
2 changed files with 5 additions and 5 deletions

View File

@@ -619,7 +619,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
/** Provide a consistent "look" for displaying router IDs in the console */
@Override
public String renderPeerHTML(Hash peer) {
String h = peer.toBase64().substring(0, 4);
String h = peer.toBase64();
StringBuilder buf = new StringBuilder(128);
String c = getCountry(peer);
if (c != null) {
@@ -636,7 +636,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
boolean found = _context.netDb().lookupRouterInfoLocally(peer) != null;
if (found)
buf.append("<a title=\"").append(_t("NetDb entry")).append("\" href=\"netdb?r=").append(h).append("\">");
buf.append(h);
buf.append(h, 0, 4);
if (found)
buf.append("</a>");
buf.append("</tt>");