forked from I2P_Developers/i2p.i2p
i2ptunnel: Disable streaming pings for clients (ticket #1142)
i2psnark: Disable streaming pings (ticket #1142)
This commit is contained in:
@ -252,6 +252,8 @@ public class I2PSnarkUtil {
|
|||||||
opts.setProperty("i2p.streaming.enforceProtocol", "true");
|
opts.setProperty("i2p.streaming.enforceProtocol", "true");
|
||||||
if (opts.getProperty("i2p.streaming.disableRejectLogging") == null)
|
if (opts.getProperty("i2p.streaming.disableRejectLogging") == null)
|
||||||
opts.setProperty("i2p.streaming.disableRejectLogging", "true");
|
opts.setProperty("i2p.streaming.disableRejectLogging", "true");
|
||||||
|
if (opts.getProperty("i2p.streaming.answerPings") == null)
|
||||||
|
opts.setProperty("i2p.streaming.answerPings", "false");
|
||||||
_manager = I2PSocketManagerFactory.createManager(_i2cpHost, _i2cpPort, opts);
|
_manager = I2PSocketManagerFactory.createManager(_i2cpHost, _i2cpPort, opts);
|
||||||
_connecting = false;
|
_connecting = false;
|
||||||
}
|
}
|
||||||
|
@ -194,6 +194,8 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
|
|||||||
Boolean.parseBoolean(tunnel.getClientOptions().getProperty(I2PTunnelIRCClient.PROP_DCC));
|
Boolean.parseBoolean(tunnel.getClientOptions().getProperty(I2PTunnelIRCClient.PROP_DCC));
|
||||||
if (!dccEnabled)
|
if (!dccEnabled)
|
||||||
tunnel.getClientOptions().setProperty("i2cp.dontPublishLeaseSet", "true");
|
tunnel.getClientOptions().setProperty("i2cp.dontPublishLeaseSet", "true");
|
||||||
|
if (tunnel.getClientOptions().getProperty("i2p.streaming.answerPings") == null)
|
||||||
|
tunnel.getClientOptions().setProperty("i2p.streaming.answerPings", "false");
|
||||||
|
|
||||||
boolean openNow = !Boolean.parseBoolean(tunnel.getClientOptions().getProperty("i2cp.delayOpen"));
|
boolean openNow = !Boolean.parseBoolean(tunnel.getClientOptions().getProperty("i2cp.delayOpen"));
|
||||||
if (openNow) {
|
if (openNow) {
|
||||||
|
Reference in New Issue
Block a user