Changeset 51b27bb for apps


Ignore:
Timestamp:
Feb 8, 2019 1:58:38 PM (16 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1ae9879
Parents:
5b78b53f
Message:

Console: Hide disabled transports on /peers

File:
1 edited

Legend:

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

    r5b78b53f r51b27bb  
    1717import net.i2p.data.router.RouterAddress;
    1818import net.i2p.router.transport.Transport;
     19import net.i2p.router.transport.TransportManager;
    1920import net.i2p.router.transport.ntcp.NTCPConnection;
    2021import net.i2p.router.transport.ntcp.NTCPTransport;
     
    185186                buf.append(_t(titles[i]));
    186187            } else {
     188                if (i == 1) {
     189                    if (!_context.getBooleanPropertyDefaultTrue(TransportManager.PROP_ENABLE_NTCP))
     190                        continue;
     191                } else if (i == 2) {
     192                    if (!_context.getBooleanPropertyDefaultTrue(TransportManager.PROP_ENABLE_UDP))
     193                        continue;
     194                }
    187195                // we are not there, make a link
    188196                if (span)
Note: See TracChangeset for help on using the changeset viewer.