HTTP Proxy: Add delay before jump page

This commit is contained in:
zzz
2017-04-26 14:00:50 +00:00
parent 6901914640
commit 06f78d7cfe
3 changed files with 8 additions and 1 deletions

View File

@ -1198,6 +1198,10 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
if(jumpServers == null) { if(jumpServers == null) {
jumpServers = DEFAULT_JUMP_SERVERS; jumpServers = DEFAULT_JUMP_SERVERS;
} }
int jumpDelay = 400 + _context.random().nextInt(256);
try {
Thread.sleep(jumpDelay);
} catch (InterruptedException ie) {}
} }
try { try {
writeErrorMessage(header, extraMessage, out, targetRequest, usingWWWProxy, destination, jumpServers); writeErrorMessage(header, extraMessage, out, targetRequest, usingWWWProxy, destination, jumpServers);

View File

@ -1,3 +1,6 @@
2017-04-26 zzz
* HTTP Proxy: Add delay before jump page
2017-04-14 zzz 2017-04-14 zzz
* SSU: * SSU:
- Reuse previous introducer expiration if available, - Reuse previous introducer expiration if available,

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 17; public final static long BUILD = 18;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = "-rc"; public final static String EXTRA = "-rc";