Changeset b9a5dd4


Ignore:
Timestamp:
Jul 3, 2013 7:14:21 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6f5f4d1
Parents:
0db7e28
Message:

Console: Hide dead tunnel pools on /tunnels

Files:
4 edited

Legend:

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

    r0db7e28 rb9a5dd4  
    1515    private static final String TUNNELS = ngettext("1 tunnel", "{0} tunnels");
    1616
    17     private static final String PROP_ADVANCED = "routerconsole.advanced";
     17    static final String PROP_ADVANCED = "routerconsole.advanced";
    1818
    1919    public String getForm() {
  • apps/routerconsole/java/src/net/i2p/router/web/TunnelRenderer.java

    r0db7e28 rb9a5dd4  
    4040        Map<Hash, TunnelPool> clientOutboundPools = _context.tunnelManager().getOutboundClientPools();
    4141        destinations = new ArrayList(clientInboundPools.keySet());
     42        boolean debug = _context.getBooleanProperty(ConfigTunnelsHelper.PROP_ADVANCED);
    4243        for (int i = 0; i < destinations.size(); i++) {
    4344            Hash client = destinations.get(i);
     45            boolean isLocal = _context.clientManager().isLocal(client);
     46            if ((!isLocal) && (!debug))
     47                continue;
    4448            TunnelPool in = null;
    4549            TunnelPool outPool = null;
     
    5458            out.write("<h2><a name=\"" + client.toBase64().substring(0,4)
    5559                      + "\" ></a>" + _("Client tunnels for") + ' ' + _(name));
    56             if (_context.clientManager().isLocal(client))
     60            if (isLocal)
    5761                out.write(" (<a href=\"/configtunnels#" + client.toBase64().substring(0,4) +"\">" + _("configure") + "</a>)</h2>\n");
    5862            else
  • history.txt

    r0db7e28 rb9a5dd4  
    112013-07-03 zzz
     2 * Console: Hide dead tunnel pools on /tunnels
    23 * Updater: Fix plugin update checker (ticket #897)
    34 * Utils: Reduce logging in wrapper log when extracting zip files
  • router/java/src/net/i2p/router/RouterVersion.java

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