diff --git a/apps/addressbook/java/src/net/i2p/addressbook/Daemon.java b/apps/addressbook/java/src/net/i2p/addressbook/Daemon.java index 099cdc65797234e3f1bc182163cb737332d90724..6f57754dd1519c50e5ce7455915366c1e0f8b57c 100644 --- a/apps/addressbook/java/src/net/i2p/addressbook/Daemon.java +++ b/apps/addressbook/java/src/net/i2p/addressbook/Daemon.java @@ -373,6 +373,7 @@ public class Daemon { ". From: " + addressbook.getLocation()); } allowExistingKeyInPublished = true; + props.setProperty("m", Long.toString(I2PAppContext.getGlobalContext().clock().now())); } else { // mismatch, disallow logMismatch(log, action, key, pod2, polddest, addressbook); @@ -447,6 +448,7 @@ public class Daemon { } else if (action.equals(HostTxtEntry.ACTION_UPDATE)) { if (isKnown) { allowExistingKeyInPublished = true; + props.setProperty("m", Long.toString(I2PAppContext.getGlobalContext().clock().now())); } } else { if (log != null) diff --git a/apps/susidns/src/java/src/i2p/susi/dns/AddressBean.java b/apps/susidns/src/java/src/i2p/susi/dns/AddressBean.java index 9cd3821df2a8f1e00ab41d02198720f2061e81b1..242ceea85e569d6a2b2eb99fc177adf999838039 100644 --- a/apps/susidns/src/java/src/i2p/susi/dns/AddressBean.java +++ b/apps/susidns/src/java/src/i2p/susi/dns/AddressBean.java @@ -202,6 +202,10 @@ public class AddressBean return getDate("m"); } + /** @since 0.9.26 */ + public boolean isValidated() { + return Boolean.valueOf(getProp("v")); + } /** @since 0.8.7 */ public String getNotes() { diff --git a/apps/susidns/src/jsp/details.jsp b/apps/susidns/src/jsp/details.jsp index 2fddad5b65d0a592931b7ca0069597944147e1fd..d4f92e849bfe2eefd6ec381cca934a6ce256e84a 100644 --- a/apps/susidns/src/jsp/details.jsp +++ b/apps/susidns/src/jsp/details.jsp @@ -119,6 +119,9 @@ <td><%=intl._t("Added Date")%></td> <td><%=addr.getAdded()%></td> </tr><tr class="list${book.trClass}"> +<td><%=intl._t("Validated")%></td> +<td><%=addr.isValidated() ? intl._t("yes") : intl._t("no")%></td> +</tr><tr class="list${book.trClass}"> <td><%=intl._t("Source")%></td> <td><%=addr.getSource()%></td> </tr><tr class="list${book.trClass}"> diff --git a/core/java/src/net/i2p/client/naming/BlockfileNamingService.java b/core/java/src/net/i2p/client/naming/BlockfileNamingService.java index 3e7003d8db3dc54e25498c9d218b831baed8bd64..5dd389adac9871bea63be4300bdd9d4bfd006f97 100644 --- a/core/java/src/net/i2p/client/naming/BlockfileNamingService.java +++ b/core/java/src/net/i2p/client/naming/BlockfileNamingService.java @@ -132,7 +132,9 @@ public class BlockfileNamingService extends DummyNamingService { private static final String VERSION = "4"; private static final String PROP_ADDED = "a"; + private static final String PROP_MODDED = "m"; private static final String PROP_SOURCE = "s"; + private static final String PROP_VALIDATED = "v"; private static final String DUMMY = ""; private static final int NEGATIVE_CACHE_SIZE = 32;