Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
2f792c04
Commit
2f792c04
authored
Apr 18, 2018
by
Nick Mathewson
👁
Browse files
Add aliases for the old DownloadSchedule options
These will produce a warning, but still work fine.
parent
2d7b5c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/config.c
View file @
2f792c04
...
...
@@ -126,6 +126,11 @@ static const char unix_socket_prefix[] = "unix:";
* configuration. */
static
const
char
unix_q_socket_prefix
[]
=
"unix:
\"
"
;
/** macro to help with the bulk rename of *DownloadSchedule to
* *DowloadInitialDelay . */
#define DOWNLOAD_SCHEDULE(name) \
{ #name "DownloadSchedule", #name "DownloadInitialDelay", 0, 1 }
/** A list of abbreviations and aliases to map command-line options, obsolete
* option names, or alternative option names, to their current values. */
static
config_abbrev_t
option_abbrevs_
[]
=
{
...
...
@@ -175,6 +180,16 @@ static config_abbrev_t option_abbrevs_[] = {
{
"_HSLayer2Nodes"
,
"HSLayer2Nodes"
,
0
,
1
},
{
"_HSLayer3Nodes"
,
"HSLayer3Nodes"
,
0
,
1
},
DOWNLOAD_SCHEDULE
(
ClientBootstrapConsensusAuthority
),
DOWNLOAD_SCHEDULE
(
ClientBootstrapConsensusAuthorityOnly
),
DOWNLOAD_SCHEDULE
(
ClientBootstrapConsensusFallback
),
DOWNLOAD_SCHEDULE
(
TestingBridge
),
DOWNLOAD_SCHEDULE
(
TestingBridgeBootstrap
),
DOWNLOAD_SCHEDULE
(
TestingClient
),
DOWNLOAD_SCHEDULE
(
TestingClientConsensus
),
DOWNLOAD_SCHEDULE
(
TestingServer
),
DOWNLOAD_SCHEDULE
(
TestingServerConsensus
),
{
NULL
,
NULL
,
0
,
0
},
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment