forked from I2P_Developers/i2p.i2p
* 2005-09-29 0.6.1 released
2005-09-29 jrandom * Let syndie users modify their metadata. * Reseed the router on startup if there aren't enough peer references known locally. This can be disabled by creating the file .i2pnoreseed in your home directory, and the existing detection and reseed handling on the web interface is unchanged.
This commit is contained in:
@ -72,6 +72,14 @@ public class RouterConsoleRunner {
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
}
|
||||
|
||||
File noReseedFile = new File(new File(System.getProperty("user.home")), ".i2pnoreseed");
|
||||
if (!noReseedFile.exists()) {
|
||||
RouterContext ctx = (RouterContext)RouterContext.listContexts().get(0);
|
||||
if (ctx.netDb().getKnownRouters() < 15) {
|
||||
ReseedHandler.requestReseed();
|
||||
}
|
||||
}
|
||||
|
||||
NewsFetcher fetcher = NewsFetcher.getInstance(I2PAppContext.getGlobalContext());
|
||||
I2PThread t = new I2PThread(fetcher, "NewsFetcher");
|
||||
|
Reference in New Issue
Block a user