I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 7aece713 authored by zzz's avatar zzz
Browse files

cleanup

parent bdbde54f
No related branches found
No related tags found
No related merge requests found
...@@ -283,18 +283,14 @@ public class ClientManager { ...@@ -283,18 +283,14 @@ public class ClientManager {
return false; return false;
} }
/**
* @return true if we don't know about this destination at all
*/
public boolean shouldPublishLeaseSet(Hash destHash) { public boolean shouldPublishLeaseSet(Hash destHash) {
if (false) return true;
if (destHash == null) return true; if (destHash == null) return true;
ClientConnectionRunner runner = getRunner(destHash); ClientConnectionRunner runner = getRunner(destHash);
if (runner == null) return true; if (runner == null) return true;
String dontPublish = runner.getConfig().getOptions().getProperty(ClientManagerFacade.PROP_CLIENT_ONLY); return !Boolean.valueOf(runner.getConfig().getOptions().getProperty(ClientManagerFacade.PROP_CLIENT_ONLY)).booleanValue();
if ( (dontPublish != null) && ("true".equals(dontPublish)) ) {
if (_log.shouldLog(Log.INFO))
_log.info("Not publishing the leaseSet for " + destHash.toBase64());
return false;
}
return true;
} }
public Set<Destination> listClients() { public Set<Destination> listClients() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment