Changeset b62732b for apps


Ignore:
Timestamp:
Jan 11, 2019 2:44:33 PM (17 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f5ca17c
Parents:
17228de
Message:

Console: More LS2 debug output
I2CP: Bump min LS2 router version for release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/helpers/NetDbRenderer.java

    r17228de rb62732b  
    3333import net.i2p.data.Lease;
    3434import net.i2p.data.LeaseSet;
     35import net.i2p.data.LeaseSet2;
    3536import net.i2p.data.router.RouterAddress;
    3637import net.i2p.data.router.RouterInfo;
     
    520521                }
    521522                buf.append("&nbsp;&nbsp;<b>Distance: </b>").append(fmt.format(biLog2(dist)));
    522                 buf.append("&nbsp;&nbsp;<b>Type: </b>").append(ls.getType());
     523                int type = ls.getType();
     524                buf.append("&nbsp;&nbsp;<b>Type: </b>").append(type);
     525                if (type != DatabaseEntry.KEY_TYPE_LEASESET) {
     526                    LeaseSet2 ls2 = (LeaseSet2) ls;
     527                    buf.append("&nbsp;&nbsp;<b>Unpublished? </b>").append(ls2.isUnpublished());
     528                    boolean isOff = ls2.isOffline();
     529                    buf.append("&nbsp;&nbsp;<b>Offline signed? </b>").append(isOff);
     530                    if (isOff)
     531                        buf.append("&nbsp;&nbsp;<b>Type: </b>").append(ls2.getTransientSigningKey().getType());
     532                }
    523533                buf.append("</td></tr>\n<tr><td colspan=\"2\">");
    524534                //buf.append(dest.toBase32()).append("<br>");
    525535                buf.append("<b>Signature type:</b> ").append(dest.getSigningPublicKey().getType());
    526                 buf.append("&nbsp;&nbsp;<b>Encryption Key:</b> ").append(ls.getEncryptionKey().toBase64().substring(0, 20)).append("&hellip;");
     536                if (type != DatabaseEntry.KEY_TYPE_META_LS2)
     537                    buf.append("&nbsp;&nbsp;<b>Encryption Key:</b> ").append(ls.getEncryptionKey().toBase64().substring(0, 20)).append("&hellip;");
    527538                buf.append("</td></tr>\n<tr><td colspan=\"2\">");
    528539                buf.append("<b>Routing Key:</b> ").append(ls.getRoutingKey().toBase64());
Note: See TracChangeset for help on using the changeset viewer.