Changeset 5440a34 for router


Ignore:
Timestamp:
Feb 21, 2019 4:16:27 PM (17 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9cd90b0
Parents:
9fafc25
Message:

I2CP: Force i2cp.leaseSetType option for offline keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/client/ClientMessageEventListener.java

    r9fafc25 r5440a34  
    290290            }
    291291        }
    292         if ("7".equals(props.getProperty("i2cp.leaseSetType"))) {
     292        String lsType = props.getProperty("i2cp.leaseSetType");
     293        if ("7".equals(lsType)) {
    293294            // Prevent tunnel builds for Meta LS
    294295            // more TODO
     
    297298            props.setProperty("inbound.lengthVariance", "0");
    298299            props.setProperty("outbound.lengthVariance", "0");
     300        } else if (lsType == null && props.getProperty(SessionConfig.PROP_OFFLINE_SIGNATURE) != null) {
     301            // force type 3
     302            props.setProperty("i2cp.leaseSetType", "3");
    299303        }
    300304        cfg.setOptions(props);
Note: See TracChangeset for help on using the changeset viewer.