I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f72753f3 authored by zzz's avatar zzz
Browse files

Addressbook: Store last-modified date

SusiDNS: Display signature validation on details page
parent d97908b4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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() {
......
......@@ -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}">
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment