Changeset be5fdea


Ignore:
Timestamp:
Aug 19, 2016 5:13:12 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b0789d4
Parents:
268953e1
Message:

Enable tunnel testing when in hidden mode (ticket #1192)
Enable tunnel testing when without addresses (ticket #1835)
Use fast peers for inbound tunnels when without addresses (ticket #1835)

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r268953e1 rbe5fdea  
     12016-08-19 zzz
     2 * CPUID: Add IDs for Kaby Lake
     3 * JettyStart: Fix main()
     4 * Router: Fix return code in getShutdownTimeRemaining()
     5 * Tunnels:
     6   - Enable tunnel testing when in hidden mode (ticket #1192)
     7   - Enable tunnel testing when without addresses (ticket #1835)
     8   - Use fast peers for inbound tunnels when without addresses (ticket #1835)
     9
     102016-08-14 zzz
     11 * i2ptunnel:
     12   - Register actual listen host with port mapper
     13   - Register POP and SMTP ports with port mapper
     14 * Reseed: Add new 'atomike' reseed
     15
     162016-08-12 zzz
     17 * i2ptunnel:
     18   - Add outproxy plugin support to SOCKS (ticket #1824)
     19   - Use preferred sigtype for new SOCKS tunnels
     20
    1212016-08-09 zzz
    222 * Console: Fix UPnP NPE on /peers (ticket #1830)
  • router/java/src/net/i2p/data/router/RouterInfo.java

    r268953e1 rbe5fdea  
    179179            throw new IllegalStateException();
    180180        _published = published;
     181    }
     182
     183    /**
     184     * Return the number of router addresses.
     185     * More efficient than getAddresses().size()
     186     *
     187     * @since 0.9.27
     188     */
     189    public int getAddressCount() {
     190        return _addresses.size();
    181191    }
    182192
  • router/java/src/net/i2p/router/RouterVersion.java

    r268953e1 rbe5fdea  
    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" */
  • router/java/src/net/i2p/router/tunnel/pool/ExploratoryPeerSelector.java

    r268953e1 rbe5fdea  
    6767            // connected to and so they have our real RI - to maximize the chance
    6868            // that the adjacent hop can connect to us.
    69             if (settings.isInbound() && ctx.router().isHidden()) {
     69            if (settings.isInbound() &&
     70                (ctx.router().isHidden() ||
     71                 ctx.router().getRouterInfo().getAddressCount() <= 0)) {
    7072                if (l.shouldLog(Log.INFO))
    7173                    l.info("EPS SFP " + length + (settings.isInbound() ? " IB" : " OB") + " exclude " + exclude.size());
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java

    r268953e1 rbe5fdea  
    557557    void buildComplete(PooledTunnelCreatorConfig cfg) {
    558558        if (cfg.getLength() > 1 &&
    559             (!_context.router().gracefulShutdownInProgress()) &&
    560             !_context.getBooleanPropertyDefaultTrue("router.disableTunnelTesting")) {
     559            !_context.router().gracefulShutdownInProgress() &&
     560            (!_context.getBooleanPropertyDefaultTrue("router.disableTunnelTesting") ||
     561             _context.router().isHidden() ||
     562             _context.router().getRouterInfo().getAddressCount() <= 0)) {
    561563            TunnelPool pool = cfg.getTunnelPool();
    562564            if (pool == null) {
Note: See TracChangeset for help on using the changeset viewer.