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

Skip to content
Snippets Groups Projects
Unverified Commit 15185de0 authored by zzz's avatar zzz
Browse files

CLI: Add 'reseeder list' to list reseeds

parent ef14eab6
No related branches found
No related tags found
No related merge requests found
Pipeline #2183 passed
......@@ -1232,8 +1232,18 @@ public class Reseeder {
public static void main(String args[]) throws Exception {
if (args.length == 1 && args[0].equals("help")) {
System.out.println("Usage: reseeder [https://hostname/ ...]");
System.out.println(" reseeder list");
System.exit(1);
}
if (args.length == 1 && args[0].equals("list")) {
System.out.println("Configured reseeds:");
String[] urls = DataHelper.split(DEFAULT_SSL_SEED_URL, ",");
Arrays.sort(urls);
for (int i = 0; i < urls.length; i++) {
System.out.println(urls[i]);
}
System.exit(0);
}
File f = new File("certificates");
if (!f.exists()) {
System.out.println("Must be run from $I2P or have symlink to $I2P/certificates in this directory");
......
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