diff --git a/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java b/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java index f5901b505..5f5f59721 100644 --- a/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java +++ b/apps/susidns/src/java/src/i2p/susi/dns/AddressbookBean.java @@ -258,7 +258,7 @@ public class AddressbookBean "&begin=" + newBegin + "&end=" + newEnd + "\">" + newBegin + '-' + newEnd + " | "; } - message += ' ' + _("Showing {0} of {1}", "" + getBegin() + '-' + getEnd(), Integer.valueOf(resultCount)); + message += ' ' + _("Showing {0} of {1}", getBegin() + '-' + getEnd(), Integer.valueOf(resultCount)); if (getEndInt() < resultCount - 1) { int newBegin = Math.min(resultCount - 1, getEndInt() + 1); int newEnd = Math.min(resultCount, getEndInt() + DISPLAY_SIZE); diff --git a/apps/susidns/src/java/src/i2p/susi/dns/NamingServiceBean.java b/apps/susidns/src/java/src/i2p/susi/dns/NamingServiceBean.java index 2bc4eb9d7..646c6b1d3 100644 --- a/apps/susidns/src/java/src/i2p/susi/dns/NamingServiceBean.java +++ b/apps/susidns/src/java/src/i2p/susi/dns/NamingServiceBean.java @@ -306,6 +306,18 @@ public class NamingServiceBean extends AddressbookBean public AddressBean getLookup() { if (this.detail == null) return null; + if (isDirect()) { + // go to some trouble to make this work for the published addressbook + this.filter = this.detail.substring(0, 1); + this.search = this.detail; + // we don't want the messages, we just want to populate entries + super.getLoadBookMessages(); + for (int i = 0; i < this.entries.length; i++) { + if (this.search.equals(this.entries[i].getName())) + return this.entries[i]; + } + return null; + } Properties nsOptions = new Properties(); Properties outProps = new Properties(); nsOptions.setProperty("list", getFileName()); diff --git a/apps/susidns/src/jsp/index.jsp b/apps/susidns/src/jsp/index.jsp index 3c55f1bbc..25529becf 100644 --- a/apps/susidns/src/jsp/index.jsp +++ b/apps/susidns/src/jsp/index.jsp @@ -82,7 +82,7 @@ <%=intl._("Hosts in the private addressbook can be accessed by you but their addresses are never distributed to others.")%> <%=intl._("The private addressbook can also be used for aliases of hosts in your other addressbooks.")%>

-

addressbook working scheme

+
addressbook working scheme