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

@@ -716,7 +716,7 @@ public class SybilRenderer {
*
*/
private void renderIPGroupsFamily(Writer out, StringBuilder buf, Map<String, List<RouterInfo>> map) throws IOException {
buf.append("<h3 id=\"samefamily\" class=\"sybils\">Routers in the same Family</h3><div class=\"sybil_container\">");
buf.append("<h3 id=\"samefamily\" class=\"sybils\">Routers in the same family</h3><div class=\"sybil_container\">");
List<String> foo = new ArrayList<String>(map.keySet());
Collections.sort(foo, new FoofComparator(map));
FamilyKeyCrypto fkc = _context.router().getFamilyKeyCrypto();
@@ -836,8 +836,8 @@ public class SybilRenderer {
" src=\"/flags.jsp?c=").append(country).append("\"> ").append("</a>");
}
if (!full) {
buf.append("<a title=\"View extended router info\" class=\"viewfullentry\" href=\"netdb?r=")
.append(hash, 0, 6).append("\" >[").append(_t("Full entry")).append("]</a>");
buf.append("<a title=\"").append(_t("View extended router info")).append("\" class=\"viewfullentry\" href=\"netdb?r=")
.append(hash).append("\" >[").append(_t("Full entry")).append("]</a>");
buf.append("<a title=\"View profile data\" class=\"viewfullentry\" href=\"viewprofile?peer=")
.append(hash).append("\" >[").append(_t("profile")).append("]</a>");
buf.append("<a title=\"").append(_t("Configure peer")).append("\" class=\"viewfullentry\" href=\"configpeer?peer=")