diff options
author | Linus Nordberg <linus@torproject.org> | 2012-07-11 11:53:07 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-07-17 09:35:38 -0400 |
commit | 21c6c8485367ce66ab0791c153177c17bccd25c5 (patch) | |
tree | 2bb094ba0f392af6afa3f97aa7d30e8aa03beb8b /src | |
parent | 93b730175566de2dcf783b1ce4b3fd87a6f7375e (diff) | |
download | tor-21c6c8485367ce66ab0791c153177c17bccd25c5.tar.gz tor-21c6c8485367ce66ab0791c153177c17bccd25c5.zip |
Allow TestingTorNetwork when alternate dir and bridge authorities are set.
Allow TestingTorNetwork when AlternateDirAuthority and
AlternateBridgeAuthority is set even if DirServer is not.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index d90e0fc996..f5b5c8fb58 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4091,9 +4091,13 @@ options_validate(or_options_t *old_options, or_options_t *options, }); } - if (options->TestingTorNetwork && !options->DirServers) { + if (options->TestingTorNetwork && + !(options->DirServers || + (options->AlternateDirAuthority && + options->AlternateBridgeAuthority))) { REJECT("TestingTorNetwork may only be configured in combination with " - "a non-default set of DirServers."); + "a non-default set of DirServer or both of AlternateDirAuthority " + "and AlternateBridgeAuthority configured."); } if (options->AllowSingleHopExits && !options->DirServers) { |