/** * @return true if we don't know about this destination at all */ public boolean shouldPublishLeaseSet(Hash destHash) { if (destHash == null) return true; ClientConnectionRunner runner = getRunner(destHash); if (runner == null) return true; SessionConfig config = runner.getConfig(destHash); if (config == null) return true; return !Boolean.parseBoolean(config.getOptions().getProperty(ClientManagerFacade.PROP_CLIENT_ONLY)); }
Properties opts = config.getOptions(); if (isPrimary && opts != null) { _dontSendMSM = "none".equals(opts.getProperty(I2PClient.PROP_RELIABILITY, "").toLowerCase(Locale.US));
@Override public boolean equals(Object object) { if ((object != null) && (object instanceof SessionConfig)) { SessionConfig cfg = (SessionConfig) object; return DataHelper.eq(getSignature(), cfg.getSignature()) && DataHelper.eq(getDestination(), cfg.getDestination()) && DataHelper.eq(getCreationDate(), cfg.getCreationDate()) && DataHelper.eq(getOptions(), cfg.getOptions()); } return false; }
public void runJob() { Hash dest = _config.getDestination().calculateHash(); if (_log.shouldLog(Log.INFO)) _log.info("Requesting lease set for destination " + dest); ClientTunnelSettings settings = new ClientTunnelSettings(dest); Properties props = new Properties(); // We're NOT going to force all clients to use the router's defaults, since that may be // excessive. This means that unless the user says otherwise, we'll be satisfied with whatever // is available. Otherwise, when the router starts up, if there aren't sufficient tunnels with the // adequate number of hops, the user will have to wait. Once peer profiles are persistent, we can // reenable this, since on startup we'll have a sufficient number of high enough ranked peers to // tunnel through. (perhaps). // XXX take the router's defaults // XXX props.putAll(Router.getInstance().getConfigMap()); // override them by the client's settings props.putAll(_config.getOptions()); // and load 'em up (using anything not yet set as the software defaults) settings.readFromProperties(props); getContext().tunnelManager().buildTunnels(_config.getDestination(), settings); } }
cfg.getOptions().putAll(message.getSessionConfig().getOptions()); ClientTunnelSettings settings = new ClientTunnelSettings(dest); Properties props = new Properties(); props.putAll(cfg.getOptions()); settings.readFromProperties(props); _context.tunnelManager().setInboundSettings(dest,
String param = msg.getSenderConfig().getOptions().getProperty(OVERALL_TIMEOUT_MS_PARAM); if (param == null) param = ctx.router().getConfigSetting(OVERALL_TIMEOUT_MS_PARAM);
Properties inProps = in.getOptions(); if (!checkAuth(inProps)) return; props.putAll(pcfg.getOptions()); } else { _log.error("no primary config?");
String allow = _clientMessage.getSenderConfig().getOptions().getProperty(BUNDLE_REPLY_LEASESET); boolean allowLeaseBundle = SendMessageOptions.getSendLeaseSet(sendFlags) && (allow == null || Boolean.parseBoolean(allow));