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) {
jumpServers = DEFAULT_JUMP_SERVERS;
}
int jumpDelay = 400 + _context.random().nextInt(256);
try {
Thread.sleep(jumpDelay);
} catch (InterruptedException ie) {}
}
try {
writeErrorMessage(header, extraMessage, out, targetRequest, usingWWWProxy, destination, jumpServers);