forked from I2P_Developers/i2p.i2p
propagate from branch 'i2p.i2p.zzz.test2' (head 47586aa88408845c51ee4c5fce40c617bdb8e398)
to branch 'i2p.i2p' (head bacb6048bc596f064ff237dd8569014a421b4ef6)
This commit is contained in:
@@ -47,7 +47,8 @@ public class TunnelConfig {
|
||||
private String _i2cpPort;
|
||||
private int _tunnelDepth = -1;
|
||||
private int _tunnelQuantity = -1;
|
||||
private int _tunnelVariance = -1;
|
||||
// -2 or higher is valid
|
||||
private int _tunnelVariance = -3;
|
||||
private int _tunnelBackupQuantity = -1;
|
||||
private boolean _connectDelay;
|
||||
private String _customOptions;
|
||||
@@ -801,7 +802,7 @@ public class TunnelConfig {
|
||||
config.setProperty("option.inbound.length", Integer.toString(_tunnelDepth));
|
||||
config.setProperty("option.outbound.length", Integer.toString(_tunnelDepth));
|
||||
}
|
||||
if (_tunnelVariance >= 0) {
|
||||
if (_tunnelVariance >= -2) {
|
||||
config.setProperty("option.inbound.lengthVariance", Integer.toString(_tunnelVariance));
|
||||
config.setProperty("option.outbound.lengthVariance", Integer.toString(_tunnelVariance));
|
||||
}
|
||||
|
@@ -18,7 +18,7 @@ public class CoreVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
|
||||
public final static String VERSION = "0.9.19";
|
||||
public final static String VERSION = "0.9.20";
|
||||
|
||||
/**
|
||||
* For Vuze.
|
||||
|
@@ -262,9 +262,15 @@ public class FortunaRandomSource extends RandomSource implements EntropyHarveste
|
||||
/** reseed the fortuna */
|
||||
@Override
|
||||
public void feedEntropy(String source, byte[] data, int offset, int len) {
|
||||
try {
|
||||
synchronized(_fortuna) {
|
||||
_fortuna.addRandomBytes(data, offset, len);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// AIOOBE seen, root cause unknown, ticket #1576
|
||||
Log log = _context.logManager().getLog(FortunaRandomSource.class);
|
||||
log.warn("feedEntropy()", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,3 +1,11 @@
|
||||
* 2015-06-02 0.9.20 released
|
||||
|
||||
2015-05-31 zzz
|
||||
* Fortuna: Catch AIOOBE (ticket #1576)
|
||||
|
||||
2015-05-30 zzz
|
||||
* i2ptunnel: Fix +/- variance config (ticket #1587)
|
||||
|
||||
2015-05-29 zzz
|
||||
* HTTP client: Fix occasional truncation of compressed responses
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
<info>
|
||||
<appname>i2p</appname>
|
||||
<appversion>0.9.19</appversion>
|
||||
<appversion>0.9.20</appversion>
|
||||
<authors>
|
||||
<author name="I2P" email="https://geti2p.net/"/>
|
||||
</authors>
|
||||
|
@@ -18,10 +18,10 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 32;
|
||||
public final static long BUILD = 0;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
public final static String EXTRA = "";
|
||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||
public static void main(String args[]) {
|
||||
System.out.println("I2P Router version: " + FULL_VERSION);
|
||||
|
Reference in New Issue
Block a user