use mihi's template engine to set a random timestamper password so people dont need to think about that stuff

don't use the dyndns anymore for seeding (use dev.i2p.net/i2pdb)
This commit is contained in:
jrandom
2004-07-10 02:36:27 +00:00
committed by zzz
parent 3cfd28de43
commit 1669d174e1
5 changed files with 10 additions and 6 deletions

View File

@ -79,7 +79,7 @@ public class FetchSeeds {
public static void main(String[] args) {
switch (args.length) {
case 1:
fetchSeeds(new File(args[0]), "http://i2p.dnsalias.net/i2pdb/");
fetchSeeds(new File(args[0]), "http://dev.i2p.net/i2pdb/");
return;
case 2:
fetchSeeds(new File(args[0]), args[1]);
@ -93,7 +93,7 @@ public class FetchSeeds {
System.out.println("Usage: FetchSeeds <outDir>");
System.out.println(" or FetchSeeds <outDir> <seedURL>");
System.out.println(" or FetchSeeds <outDir> <seedURL> <secondsBetweenFetch>");
System.out.println("The default seedURL is http://i2p.dnsalias.net/i2pdb/");
System.out.println("The default seedURL is http://dev.i2p.net/i2pdb/");
return;
}
}

View File

@ -325,6 +325,10 @@ public abstract class Install {
_i2cpPort = ((Integer)_answers.get("i2cpPort")).intValue();
_inBPS = ((Integer)_answers.get("inBPS")).intValue();
_outBPS = ((Integer)_answers.get("outBPS")).intValue();
long num = new java.util.Random().nextLong();
if (num < 0)
num = 0 - num;
_answers.put("timestamperPassword", new Long(num));
}
private void useTemplate(String templateName, File destFile) {

View File

@ -1,3 +1,3 @@
cd ##_scripts_installdir##
java -jar lib\fetchseeds.jar netDb
java -jar lib\fetchseeds.jar netDb http://dev.i2p.net/i2pdb/
pause

View File

@ -1,4 +1,4 @@
#!/bin/sh
cd ##_scripts_installdir##
java -jar lib/fetchseeds.jar netDb
java -jar lib/fetchseeds.jar netDb http://dev.i2p.net/i2pdb/
echo Router network database reseeded

View File

@ -125,13 +125,13 @@ tunnels.tunnelDuration=600000
clientApp.0.main=net.i2p.time.Timestamper
clientApp.0.name=Timestamper
clientApp.0.onBoot=true
clientApp.0.args=http://localhost:7655/setTime?putTheValueFromBelowHere pool.ntp.org pool.ntp.org pool.ntp.org
clientApp.0.args=http://localhost:7655/setTime?##timestamperPassword## pool.ntp.org pool.ntp.org pool.ntp.org
# The admin time passphrase, used to prevent unauthorized people from updating your
# routers time. The value should be included in the timestamper's args above,
# otherwise it wont honor timestamp updates. You shouldnt include any spaces or funky
# characters - just pick some random numbers.
adminTimePassphrase=pleaseSetSomeValueHere
adminTimePassphrase=##timestamperPassword##
# SAM bridge (a simplified socket based protocol for using I2P - listens on port 7656. see
# the specs at http://www.i2p.net/node/view/144 for more info)