diff --git a/core/java/src/net/i2p/client/impl/RequestLeaseSetMessageHandler.java b/core/java/src/net/i2p/client/impl/RequestLeaseSetMessageHandler.java index 5621551b8febd58c6117efc98954be8a962bcf4a..03279cba2347494a833fdb051741c749c4193b53 100644 --- a/core/java/src/net/i2p/client/impl/RequestLeaseSetMessageHandler.java +++ b/core/java/src/net/i2p/client/impl/RequestLeaseSetMessageHandler.java @@ -73,6 +73,8 @@ class RequestLeaseSetMessageHandler extends HandlerImpl { private static final String PROP_DH = "i2cp.leaseSetClient.dh."; private static final String PROP_PSK = "i2cp.leaseSetClient.psk."; + private static final boolean PREFER_NEW_ENC = false; + public RequestLeaseSetMessageHandler(I2PAppContext context) { this(context, RequestLeaseSetMessage.MESSAGE_TYPE); } @@ -239,6 +241,8 @@ class RequestLeaseSetMessageHandler extends HandlerImpl { List<EncType> types = new ArrayList<EncType>(2); String senc = session.getOptions().getProperty(PROP_LS_ENCTYPE); if (senc != null) { + if (!PREFER_NEW_ENC && senc.equals("4,0")) + senc = "0,4"; String[] senca = DataHelper.split(senc, ","); for (String sencaa : senca) { EncType newtype = EncType.parseEncType(sencaa); @@ -483,7 +487,7 @@ class RequestLeaseSetMessageHandler extends HandlerImpl { * @param types must be available */ public LeaseInfo(Destination dest, List<EncType> types) { - if (types.size() > 1) { + if (types.size() > 1 && PREFER_NEW_ENC) { Collections.sort(types, Collections.reverseOrder()); } _privKeys = new ArrayList<PrivateKey>(types.size()); diff --git a/history.txt b/history.txt index c60fbfd64ff983bfb84573cedbbf2f2dd5c60e81..46de1302df19d070a4c9b342bd782ec0d10f02b9 100644 --- a/history.txt +++ b/history.txt @@ -1,5 +1,35 @@ +2019-11-20 zzz + * I2CP: + - Prevent an uncaught OCMOSJ exception from killing the session + - Don't put ECIES first in LS2 + +2019-11-17 zzz + * SSU: Lower ACKSender log level (ticket #2651) + +2019-11-16 zzz + * Transport: Save IPv6 firewalled state across restarts (ticket #2175) + +2019-11-15 zzz + * Console: Fix plugin icon-code images + * i2psnark: Don't start tunnels when autostart enabled but no + torrents set to autostart (ticket #2662) + * SSU: Remove redundant field (ticket #2659) + +2019-11-14 zzz + * Transport: + - Fixes for IPv6 firewalled logic (ticket #2175) + - Fix SSU log value (ticket #2652) + - Remove unused currentReceiveSecond (ticket #2661) + +2019-11-13 zzz + * Console: Hide buttons on /configkeyring if no entries + * i2ptunnel: Don't delay after ConnectException if stopped + (fixes zzzot stop delay) + 2019-11-12 zzz - * i2psnark: Audio playlist support + * i2psnark: + - Audio playlist support + - Restrict mime types for HTML5 players 2019-11-11 zzz * KeyGenerator: Use new PrivateKey constructor diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java index f6e6df3a5c0d10fbf1efc2f7069c342c2fe16f4e..4e28a2c8d2676ff98ee569a93ae883ef407d9461 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 = "Monotone"; public final static String VERSION = CoreVersion.VERSION; - public final static long BUILD = 4; + public final static long BUILD = 5; /** for example "-test" */ public final static String EXTRA = "";