diff --git a/core/java/src/net/i2p/client/naming/HostTxtEntry.java b/core/java/src/net/i2p/client/naming/HostTxtEntry.java index 3023649d47bbb5ec4bfc0c6431e171393bd3fad3..96a9549598053dabad9b87d65afee87e48ba7162 100644 --- a/core/java/src/net/i2p/client/naming/HostTxtEntry.java +++ b/core/java/src/net/i2p/client/naming/HostTxtEntry.java @@ -396,6 +396,8 @@ public class HostTxtEntry { throw new IllegalStateException(); props.setProperty(PROP_NAME, name); props.setProperty(PROP_DEST, dest); + if (!props.containsKey(PROP_DATE)) + props.setProperty(PROP_DATE, Long.toString(System.currentTimeMillis() / 1000)); StringWriter buf = new StringWriter(1024); try { writeProps(buf); @@ -418,6 +420,8 @@ public class HostTxtEntry { throw new IllegalStateException(); if (props.containsKey(sigprop)) throw new IllegalStateException(); + if (!props.containsKey(PROP_DATE)) + props.setProperty(PROP_DATE, Long.toString(System.currentTimeMillis() / 1000)); StringWriter buf = new StringWriter(1024); buf.append(name); buf.append(KV_SEPARATOR);