diff --git a/history.txt b/history.txt index 5a591f0ef..e505044a7 100644 --- a/history.txt +++ b/history.txt @@ -1,3 +1,8 @@ +2021-08-26 zzz + * Debian: Fix dh_installdocs build error + * Router: Increase rekey probability + * Tunnels: Enable sending short build messages + 2021-08-23 1.5.0 released 2021-08-20 zzz diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index ed7e15522..24c6e3ec7 100644 --- a/router/java/src/net/i2p/router/RouterVersion.java +++ b/router/java/src/net/i2p/router/RouterVersion.java @@ -18,7 +18,7 @@ public class RouterVersion { /** deprecated */ public final static String ID = "Git"; public final static String VERSION = CoreVersion.VERSION; - public final static long BUILD = 0; + public final static long BUILD = 1; /** for example "-test" */ public final static String EXTRA = ""; diff --git a/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java b/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java index 4e41d35d6..6a552b56e 100644 --- a/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java +++ b/router/java/src/net/i2p/router/tunnel/pool/BuildHandler.java @@ -105,9 +105,6 @@ class BuildHandler implements Runnable { private static final long JOB_LAG_LIMIT_TUNNEL = 350; - // TODO remove when finished - private static final boolean HANDLE_SHORT = true; - public BuildHandler(RouterContext ctx, TunnelPoolManager manager, BuildExecutor exec) { _context = ctx; _log = ctx.logManager().getLog(getClass()); @@ -977,11 +974,6 @@ class BuildHandler implements Runnable { // TODO options Properties props = EmptyProperties.INSTANCE; if (state.msg.getType() == ShortTunnelBuildMessage.MESSAGE_TYPE) { - if (!HANDLE_SHORT) { - if (_log.shouldWarn()) - _log.warn("Unsupported STBM"); - return; - } reply = BuildResponseRecord.createShort(_context, response, req.getChaChaReplyKey(), req.getChaChaReplyAD(), props, ourSlot); } else { reply = BuildResponseRecord.create(_context, response, req.getChaChaReplyKey(), req.getChaChaReplyAD(), props); diff --git a/router/java/src/net/i2p/router/tunnel/pool/BuildRequestor.java b/router/java/src/net/i2p/router/tunnel/pool/BuildRequestor.java index 9cfc32042..3ff0356f2 100644 --- a/router/java/src/net/i2p/router/tunnel/pool/BuildRequestor.java +++ b/router/java/src/net/i2p/router/tunnel/pool/BuildRequestor.java @@ -40,8 +40,6 @@ abstract class BuildRequestor { private static final List ORDER = new ArrayList(TunnelBuildMessage.MAX_RECORD_COUNT); private static final String MIN_NEWTBM_VERSION = "0.9.51"; private static final boolean SEND_VARIABLE = true; - // TODO remove when finished - private static final boolean SEND_SHORT = false; private static final int SHORT_RECORDS = 4; private static final List SHORT_ORDER = new ArrayList(SHORT_RECORDS); /** 5 (~2600 bytes) fits nicely in 3 tunnel messages */ @@ -338,8 +336,7 @@ abstract class BuildRequestor { long replyTunnel = 0; Hash replyRouter; boolean useVariable = SEND_VARIABLE && cfg.getLength() <= MEDIUM_RECORDS; - boolean useShortTBM = (SEND_SHORT || ctx.getBooleanProperty("router.useShortTBM")) && - ctx.keyManager().getPublicKey().getType() == EncType.ECIES_X25519; + boolean useShortTBM = ctx.keyManager().getPublicKey().getType() == EncType.ECIES_X25519; if (useShortTBM && !cfg.isInbound() && !pool.getSettings().isExploratory()) { // client must be EC also to get garlic OTBRM reply LeaseSetKeys lsk = ctx.keyManager().getKeys(pool.getSettings().getDestination());