Changeset d67d501


Ignore:
Timestamp:
Sep 27, 2018 2:38:18 PM (18 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3a5f020
Parents:
a69aa15
Message:

Data: Don't corrupt hidden RI with addresses

Location:
router/java/src/net/i2p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/data/router/RouterInfo.java

    ra69aa15 rd67d501  
    337337
    338338            _identity.writeBytes(out);
    339             // avoid thrashing objects
    340             //DataHelper.writeDate(out, new Date(_published));
    341339            DataHelper.writeLong(out, 8, _published);
     340            // There shouldn't be any addresses when hidden, but if there are,
     341            // write them out, so as not to invalidate the signature
    342342            int sz = _addresses.size();
    343             if (sz <= 0 || isHidden()) {
    344                 // Do not send IP address to peers in hidden mode
    345                 out.write((byte) 0);
    346             } else {
    347                 out.write((byte) sz);
     343            out.write((byte) sz);
     344            if (sz > 0) {
    348345                for (RouterAddress addr : _addresses) {
    349346                    addr.writeBytes(out);
  • router/java/src/net/i2p/router/RouterVersion.java

    ra69aa15 rd67d501  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 9;
     21    public final static long BUILD = 10;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.