mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
feat: default public trackers
This commit is contained in:
committed by
Charles Kerr
parent
f436d742a2
commit
7b377511a9
@@ -94,7 +94,7 @@ static struct event_base* ev_base = nullptr;
|
||||
**** Config File
|
||||
***/
|
||||
|
||||
static auto constexpr Options = std::array<tr_option, 43>{
|
||||
static auto constexpr Options = std::array<tr_option, 44>{
|
||||
{ { 'a', "allowed", "Allowed IP addresses. (Default: " TR_DEFAULT_RPC_WHITELIST ")", "a", true, "<list>" },
|
||||
{ 'b', "blocklist", "Enable peer blocklists", "b", false, nullptr },
|
||||
{ 'B', "no-blocklist", "Disable peer blocklists", "B", false, nullptr },
|
||||
@@ -103,6 +103,7 @@ static auto constexpr Options = std::array<tr_option, 43>{
|
||||
{ 941, "incomplete-dir", "Where to store new torrents until they're complete", nullptr, true, "<directory>" },
|
||||
{ 942, "no-incomplete-dir", "Don't store incomplete torrents in a different location", nullptr, false, nullptr },
|
||||
{ 'd', "dump-settings", "Dump the settings and exit", "d", false, nullptr },
|
||||
{ 943, "default-trackers", "Trackers for public torrents to use automatically", nullptr, true, "<list>" },
|
||||
{ 'e', "logfile", "Dump the log messages to this filename", "e", true, "<filename>" },
|
||||
{ 'f', "foreground", "Run in the foreground instead of daemonizing", "f", false, nullptr },
|
||||
{ 'g', "config-dir", "Where to look for configuration files", "g", true, "<path>" },
|
||||
@@ -416,6 +417,10 @@ static bool parse_args(
|
||||
tr_variantDictAddBool(settings, TR_KEY_incomplete_dir_enabled, false);
|
||||
break;
|
||||
|
||||
case 943:
|
||||
tr_variantDictAddStr(settings, TR_KEY_default_trackers, optstr);
|
||||
break;
|
||||
|
||||
case 'd':
|
||||
*dump_settings = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user