Changeset c1adcfc


Ignore:
Timestamp:
May 10, 2019 5:33:39 PM (11 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f6efdcea
Parents:
0a73303
Message:

NetDB: Use expl. tunnels to verify Meta LS2 (proposal #123)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillVerifyStoreJob.java

    r0a73303 rc1adcfc  
    104104        boolean isInboundExploratory;
    105105        TunnelInfo replyTunnelInfo;
    106         if (_isRouterInfo || getContext().keyRing().get(_key) != null) {
     106        if (_isRouterInfo || getContext().keyRing().get(_key) != null ||
     107            _type == DatabaseEntry.KEY_TYPE_META_LS2) {
    107108            replyTunnelInfo = getContext().tunnelManager().selectInboundExploratoryTunnel(_target);
    108109            isInboundExploratory = true;
     
    123124        // Unless it is an encrypted leaseset.
    124125        TunnelInfo outTunnel;
    125         if (_isRouterInfo || getContext().keyRing().get(_key) != null)
     126        if (_isRouterInfo || getContext().keyRing().get(_key) != null ||
     127            _type == DatabaseEntry.KEY_TYPE_META_LS2) {
    126128            outTunnel = getContext().tunnelManager().selectOutboundExploratoryTunnel(_target);
    127         else
     129        } else {
    128130            outTunnel = getContext().tunnelManager().selectOutboundTunnel(_client, _target);
     131        }
    129132        if (outTunnel == null) {
    130133            if (_log.shouldLog(Log.WARN))
Note: See TracChangeset for help on using the changeset viewer.