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:
@ -79,7 +79,7 @@ public class FetchSeeds {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 1:
|
case 1:
|
||||||
fetchSeeds(new File(args[0]), "http://i2p.dnsalias.net/i2pdb/");
|
fetchSeeds(new File(args[0]), "http://dev.i2p.net/i2pdb/");
|
||||||
return;
|
return;
|
||||||
case 2:
|
case 2:
|
||||||
fetchSeeds(new File(args[0]), args[1]);
|
fetchSeeds(new File(args[0]), args[1]);
|
||||||
@ -93,7 +93,7 @@ public class FetchSeeds {
|
|||||||
System.out.println("Usage: FetchSeeds <outDir>");
|
System.out.println("Usage: FetchSeeds <outDir>");
|
||||||
System.out.println(" or FetchSeeds <outDir> <seedURL>");
|
System.out.println(" or FetchSeeds <outDir> <seedURL>");
|
||||||
System.out.println(" or FetchSeeds <outDir> <seedURL> <secondsBetweenFetch>");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -325,6 +325,10 @@ public abstract class Install {
|
|||||||
_i2cpPort = ((Integer)_answers.get("i2cpPort")).intValue();
|
_i2cpPort = ((Integer)_answers.get("i2cpPort")).intValue();
|
||||||
_inBPS = ((Integer)_answers.get("inBPS")).intValue();
|
_inBPS = ((Integer)_answers.get("inBPS")).intValue();
|
||||||
_outBPS = ((Integer)_answers.get("outBPS")).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) {
|
private void useTemplate(String templateName, File destFile) {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
cd ##_scripts_installdir##
|
cd ##_scripts_installdir##
|
||||||
java -jar lib\fetchseeds.jar netDb
|
java -jar lib\fetchseeds.jar netDb http://dev.i2p.net/i2pdb/
|
||||||
pause
|
pause
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ##_scripts_installdir##
|
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
|
echo Router network database reseeded
|
@ -125,13 +125,13 @@ tunnels.tunnelDuration=600000
|
|||||||
clientApp.0.main=net.i2p.time.Timestamper
|
clientApp.0.main=net.i2p.time.Timestamper
|
||||||
clientApp.0.name=Timestamper
|
clientApp.0.name=Timestamper
|
||||||
clientApp.0.onBoot=true
|
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
|
# 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,
|
# 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
|
# otherwise it wont honor timestamp updates. You shouldnt include any spaces or funky
|
||||||
# characters - just pick some random numbers.
|
# 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
|
# 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)
|
# the specs at http://www.i2p.net/node/view/144 for more info)
|
||||||
|
Reference in New Issue
Block a user