Console: Linkify router hash even if not in netdb

as the console will do the lookup if not
This commit is contained in:
zzz
2022-08-28 11:22:31 -04:00
parent b34b0cc399
commit b25c207e9a

View File

@@ -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(countryName);
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("<tt>");
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("<tt><a title=\"").append(_t("NetDb entry")).append("\" href=\"netdb?r=").append(h).append("\">");
buf.append(h, 0, 4);
if (found)
buf.append("</a>");
buf.append("</tt>");
buf.append("</a></tt>");
return buf.toString();
}