Changeset 9d2f684 for apps


Ignore:
Timestamp:
Jul 11, 2018 1:04:13 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b78870d
Parents:
6ad1de8
Message:

Streaming: Change enforce protocol default to true

Location:
apps/streaming/java/src/net/i2p/client/streaming/impl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionManager.java

    r6ad1de8 r9d2f684  
    9898        _tcbShare = new TCBShare(_context, _timer);
    9999        // PROTO_ANY is for backward compatibility (pre-0.7.1)
    100         // TODO change proto to PROTO_STREAMING someday.
    101         // Right now we get everything, and rely on Datagram to specify PROTO_UDP.
    102100        // PacketQueue has sent PROTO_STREAMING since the beginning of mux support (0.7.1)
    103101        // As of 0.9.1, new option to enforce streaming protocol, off by default
    104102        // As of 0.9.1, listen on configured port (default 0 = all)
     103        // enforce protocol default changed to true in 0.9.36
    105104        int protocol = defaultOptions.getEnforceProtocol() ? I2PSession.PROTO_STREAMING : I2PSession.PROTO_ANY;
    106105        _session.addMuxedSessionListener(_messageHandler, protocol, defaultOptions.getLocalPort());
  • apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionOptions.java

    r6ad1de8 r9d2f684  
    156156    /**
    157157     *  If PROTO is enforced, we cannot communicate with destinations earlier than version 0.7.1.
     158     *  Default true as of 0.9.36.
    158159     *  @since 0.9.1
    159160     */
    160     private static final boolean DEFAULT_ENFORCE_PROTO = false;
     161    private static final boolean DEFAULT_ENFORCE_PROTO = true;
    161162
    162163    private final int _trend[] = new int[TREND_COUNT];
     
    524525    /**
    525526     * Do we receive all traffic, or only traffic marked with I2PSession.PROTO_STREAMING (6) ?
    526      * Default false.
     527     * Default true.
    527528     * If PROTO is enforced, we cannot communicate with destinations earlier than version 0.7.1
    528529     * (released March 2009), which is when streaming started sending the PROTO_STREAMING indication.
Note: See TracChangeset for help on using the changeset viewer.