show b32 for local leasesets too

This commit is contained in:
zzz
2014-12-02 15:11:12 +00:00
parent fb641187b8
commit 78d7277298

View File

@ -148,6 +148,13 @@ public class NetDbRenderer {
else
buf.append(dest.toBase64().substring(0, 6));
buf.append(")<br>\n");
String b32 = dest.toBase32();
buf.append("<a href=\"http://").append(b32).append("\">").append(b32).append("</a><br>\n");
String host = _context.namingService().reverseLookup(dest);
if (host == null) {
buf.append("<a href=\"/susidns/addressbook.jsp?book=private&amp;destination=")
.append(dest.toBase64()).append("#add\">").append(_("Add to local addressbook")).append("</a><br>\n");
}
} else {
buf.append(" (").append(_("Destination")).append(' ');
String host = _context.namingService().reverseLookup(dest);