From b31a266be85b8d1822f05d604c863a3d01d1ca29 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 10 Jan 2023 12:25:41 -0800 Subject: [PATCH] testnet fixes -- add ability to pass .ini path without --config flag -- -r flag runs lokinet in router mode --- daemon/lokinet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/lokinet.cpp b/daemon/lokinet.cpp index d9413d693..fbf2787ae 100644 --- a/daemon/lokinet.cpp +++ b/daemon/lokinet.cpp @@ -377,7 +377,7 @@ namespace cli.add_flag("-f,--force", options.overwrite, "Force writing config even if file exists"); // options: string - cli.add_option("--config", options.configPath, "Path to lokinet.ini configuration file") + cli.add_option("config,--config", options.configPath, "Path to lokinet.ini configuration file") ->capture_default_str(); if constexpr (llarp::platform::is_windows) @@ -419,6 +419,8 @@ namespace } } + opts.isSNode = options.router; + if (options.generate) { options.configOnly = true;