forked from I2P_Developers/i2p.i2p
Transports: Enable 4/6 caps
Set i2np.transportCaps=false to disable Fix NTCP2 address with host and caps after state transition Bump -7
This commit is contained in:
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Git";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 6;
|
||||
public final static long BUILD = 7;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
||||
@@ -74,7 +74,7 @@ public abstract class TransportImpl implements Transport {
|
||||
/** @since 0.9.50 */
|
||||
protected static final String PROP_TRANSPORT_CAPS = "i2np.transportCaps";
|
||||
/** @since 0.9.50 */
|
||||
protected static final boolean ENABLE_TRANSPORT_CAPS = false;
|
||||
protected static final boolean ENABLE_TRANSPORT_CAPS = true;
|
||||
/** @since 0.9.50 */
|
||||
public static final String CAP_IPV4 = "4";
|
||||
/** @since 0.9.50 */
|
||||
|
||||
@@ -1240,6 +1240,7 @@ public class NTCPTransport extends TransportImpl {
|
||||
// only set i if we are not firewalled
|
||||
if (props.containsKey("host")) {
|
||||
props.setProperty("i", _b64Ntcp2StaticIV);
|
||||
props.remove("caps");
|
||||
} else if (_context.getProperty(PROP_TRANSPORT_CAPS, ENABLE_TRANSPORT_CAPS)) {
|
||||
String caps;
|
||||
TransportUtil.IPv6Config config = getIPv6Config();
|
||||
|
||||
Reference in New Issue
Block a user