mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 10:52:57 +00:00
addressbook: Add date parameter to authentication strings
This commit is contained in:
1 parent
8d928eadba
commit
2de25ca453
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user