Changeset 2de25ca for core


Ignore:
Timestamp:
Feb 27, 2017 7:50:21 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e995a4c
Parents:
8d928ea
Message:

addressbook: Add date parameter to authentication strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/naming/HostTxtEntry.java

    r8d928ea r2de25ca  
    397397        props.setProperty(PROP_NAME, name);
    398398        props.setProperty(PROP_DEST, dest);
     399        if (!props.containsKey(PROP_DATE))
     400            props.setProperty(PROP_DATE, Long.toString(System.currentTimeMillis() / 1000));
    399401        StringWriter buf = new StringWriter(1024);
    400402        try {
     
    419421        if (props.containsKey(sigprop))
    420422            throw new IllegalStateException();
     423        if (!props.containsKey(PROP_DATE))
     424            props.setProperty(PROP_DATE, Long.toString(System.currentTimeMillis() / 1000));
    421425        StringWriter buf = new StringWriter(1024);
    422426        buf.append(name);
Note: See TracChangeset for help on using the changeset viewer.