Changeset 700d4d3 for apps


Ignore:
Timestamp:
Dec 1, 2018 4:27:53 PM (19 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9efa0ea
Parents:
026ddb3
Message:

Console: Don't output tunnel IDs for meta LS
Router: Don't try to send to a meta LS in OCMOSJ

File:
1 edited

Legend:

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

    r026ddb3 r700d4d3  
    2727
    2828import net.i2p.crypto.SigType;
     29import net.i2p.data.DatabaseEntry;
    2930import net.i2p.data.DataHelper;
    3031import net.i2p.data.Destination;
     
    518519                }
    519520                buf.append("&nbsp;&nbsp;<b>Distance: </b>").append(fmt.format(biLog2(dist)));
     521                buf.append("&nbsp;&nbsp;<b>Type: </b>").append(ls.getType());
    520522                buf.append("</td></tr>\n<tr><td colspan=\"2\">");
    521523                //buf.append(dest.toBase32()).append("<br>");
     
    528530            }
    529531            buf.append("<tr><td colspan=\"2\"><ul class=\"netdb_leases\">");
     532            boolean isMeta = ls.getType() == DatabaseEntry.KEY_TYPE_META_LS2;
    530533            for (int i = 0; i < ls.getLeaseCount(); i++) {
    531534                Lease lease = ls.getLease(i);
     
    534537                   .append(_t("Gateway")).append("\"></span> <span class=\"tunnel_peer\">");
    535538                buf.append(_context.commSystem().renderPeerHTML(lease.getGateway()));
    536                 buf.append("</span> <span class=\"netdb_tunnel\">").append(_t("Tunnel")).append(" <span class=\"tunnel_id\">")
    537                    .append(lease.getTunnelId().getTunnelId()).append("</span></span> ");
     539                buf.append("</span> ");
     540                if (!isMeta) {
     541                    buf.append("<span class=\"netdb_tunnel\">").append(_t("Tunnel")).append(" <span class=\"tunnel_id\">")
     542                       .append(lease.getTunnelId().getTunnelId()).append("</span></span> ");
     543                }
    538544                if (debug) {
    539545                    long exl = lease.getEndDate().getTime() - now;
Note: See TracChangeset for help on using the changeset viewer.