]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Allow TestingTorNetwork when alternate dir and bridge authorities are set.
authorLinus Nordberg <linus@torproject.org>
Wed, 11 Jul 2012 09:53:07 +0000 (11:53 +0200)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Jul 2012 13:35:38 +0000 (09:35 -0400)
Allow TestingTorNetwork when AlternateDirAuthority and
AlternateBridgeAuthority is set even if DirServer is not.

changes/bug6377 [new file with mode: 0644]
src/or/config.c

diff --git a/changes/bug6377 b/changes/bug6377
new file mode 100644 (file)
index 0000000..a3a3672
--- /dev/null
@@ -0,0 +1,4 @@
+ o Testing:
+   - Make it possible to set the TestingTorNetwork configuration
+     option using AlternateDirAuthority and AlternateBridgeAuthority
+     as an alternative to setting DirServer.
index d90e0fc996b7fb03f48b276530e7d3cf3223680f..f5b5c8fb58a4cb6f4cc2a2b99aca86f360514bb7 100644 (file)
@@ -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) {