2007-01-20 Complication

* Modify ReseedHandler to query the "i2p.reseedURL" property from I2PAppContext
      instead of System, so setting a reseed URL in advanced configuration has effect.
    * Clean out obsolete reseed code from ConfigNetHandler.
This commit is contained in:
complication
2007-01-21 03:35:49 +00:00
committed by zzz
parent e6e6d6f4ee
commit 46ca42ddf8
4 changed files with 12 additions and 94 deletions

View File

@ -22,6 +22,7 @@ import net.i2p.util.I2PThread;
*
*/
public class ReseedHandler {
private static ReseedRunner _reseedRunner = new ReseedRunner();
public void setReseedNonce(String nonce) {
@ -66,7 +67,7 @@ public class ReseedHandler {
*
*/
private static void reseed(boolean echoStatus) {
String seedURL = System.getProperty("i2p.reseedURL", DEFAULT_SEED_URL);
String seedURL = I2PAppContext.getGlobalContext().getProperty("i2p.reseedURL", DEFAULT_SEED_URL);
if ( (seedURL == null) || (seedURL.trim().length() <= 0) )
seedURL = DEFAULT_SEED_URL;
try {