I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 3244fe1b authored by zzz's avatar zzz
Browse files

Tunnels: Add check for prop. 157 layer enc. type

parent 6b2a4a8f
No related branches found
No related tags found
No related merge requests found
......@@ -803,6 +803,16 @@ class BuildHandler implements Runnable {
//if ( (response == 0) && (_context.random().nextInt(50) <= 1) )
// response = TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT;
if (response == 0) {
// only in short build request, otherwise 0
int type = req.readLayerEncryptionType();
if (type != 0) {
if (_log.shouldWarn())
_log.warn("Unsupported layer enc. type: " + type);
response = TunnelHistory.TUNNEL_REJECT_BANDWIDTH;
}
}
long recvDelay = now - state.recvTime;
if (response == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment