2004-11-17 jrandom
* Fix to propogate i2psocket options into the SAM bridge correctly (thanks Ragnarok!)
This commit is contained in:
@ -180,9 +180,9 @@ public class SAMStreamSession {
|
||||
Destination d = new Destination();
|
||||
d.fromBase64(dest);
|
||||
|
||||
// FIXME: we should config I2PSocketOptions here
|
||||
I2PSocketOptions opts = socketMgr.buildOptions();
|
||||
opts.setConnectTimeout(60 * 1000);
|
||||
I2PSocketOptions opts = socketMgr.buildOptions(props);
|
||||
if (props.getProperty(I2PSocketOptions.PROP_CONNECT_TIMEOUT) == null)
|
||||
opts.setConnectTimeout(60 * 1000);
|
||||
|
||||
_log.debug("Connecting new I2PSocket...");
|
||||
I2PSocket i2ps = socketMgr.connect(d, opts);
|
||||
|
Reference in New Issue
Block a user