mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
actually, if recommendedversions is required for dirservers,
then require it. svn:r1253
This commit is contained in:
parent
3ba392e69f
commit
8e4f1f67fa
1 changed files with 6 additions and 1 deletions
|
@ -377,7 +377,7 @@ static void init_options(or_options_t *options) {
|
|||
options->SocksBindAddress = tor_strdup("127.0.0.1");
|
||||
options->ORBindAddress = tor_strdup("0.0.0.0");
|
||||
options->DirBindAddress = tor_strdup("0.0.0.0");
|
||||
options->RecommendedVersions = tor_strdup("[no recommended versions defined -- the dirserver must define this]");
|
||||
options->RecommendedVersions = NULL;
|
||||
options->loglevel = LOG_INFO;
|
||||
options->PidFile = NULL; // tor_strdup("tor.pid");
|
||||
options->DataDirectory = NULL;
|
||||
|
@ -575,6 +575,11 @@ int getconfig(int argc, char **argv, or_options_t *options) {
|
|||
result = -1;
|
||||
}
|
||||
|
||||
if(options->DirPort && options->RecommendedVersions == NULL) {
|
||||
log(LOG_WARN,"Directory servers must configure RecommendedVersions.");
|
||||
result = -1;
|
||||
}
|
||||
|
||||
if(options->SocksPort > 1 &&
|
||||
(options->PathlenCoinWeight < 0.0 || options->PathlenCoinWeight >= 1.0)) {
|
||||
log(LOG_WARN,"PathlenCoinWeight option must be >=0.0 and <1.0.");
|
||||
|
|
Loading…
Add table
Reference in a new issue