I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit b25c207e authored by zzz's avatar zzz
Browse files

Console: Linkify router hash even if not in netdb

as the console will do the lookup if not
parent b34b0cc3
No related branches found
No related tags found
No related merge requests found
...@@ -632,17 +632,12 @@ public class CommSystemFacadeImpl extends CommSystemFacade { ...@@ -632,17 +632,12 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
buf.append("<img height=\"11\" width=\"16\" alt=\"").append(c.toUpperCase(Locale.US)).append("\" title=\""); buf.append("<img height=\"11\" width=\"16\" alt=\"").append(c.toUpperCase(Locale.US)).append("\" title=\"");
buf.append(countryName); buf.append(countryName);
buf.append("\" src=\"/flags.jsp?c=").append(c).append("\"> "); buf.append("\" src=\"/flags.jsp?c=").append(c).append("\"> ");
} } else {
else
buf.append("<img class=\"unknownflag\" height=\"11\" width=\"16\" alt=\"??\" src=\"/flags.jsp?c=a0\" title=\"").append(_t("unknown")).append("\"> "); buf.append("<img class=\"unknownflag\" height=\"11\" width=\"16\" alt=\"??\" src=\"/flags.jsp?c=a0\" title=\"").append(_t("unknown")).append("\"> ");
buf.append("<tt>"); }
boolean found = _context.netDb().lookupRouterInfoLocally(peer) != null; buf.append("<tt><a title=\"").append(_t("NetDb entry")).append("\" href=\"netdb?r=").append(h).append("\">");
if (found)
buf.append("<a title=\"").append(_t("NetDb entry")).append("\" href=\"netdb?r=").append(h).append("\">");
buf.append(h, 0, 4); buf.append(h, 0, 4);
if (found) buf.append("</a></tt>");
buf.append("</a>");
buf.append("</tt>");
return buf.toString(); return buf.toString();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment