forked from I2P_Developers/i2p.i2p
Console: Use full hash for links to RI
for efficient lookup and to prevent display of dup prefixes
This commit is contained in:
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user