Changeset 859584c for router


Ignore:
Timestamp:
Apr 10, 2019 6:28:51 PM (12 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
cddace2
Parents:
6237fc8
Message:

NTCP2: Allow longer padding in msg 1 if NTCP1 disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/ntcp/InboundEstablishState.java

    r6237fc8 r859584c  
    747747                return;
    748748            }
    749             // TODO if NTCP1 disabled, we should allow longer padding
    750             if (_padlen1 > PADDING1_MAX) {
     749            // If NTCP1 disabled, we allow longer padding
     750            if (_padlen1 > PADDING1_MAX && _transport.isNTCP1Enabled()) {
    751751                fail("bad msg 1 padlen: " + _padlen1);
    752752                return;
Note: See TracChangeset for help on using the changeset viewer.