]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make formal a constraint that's been true a while now
authorRoger Dingledine <arma@torproject.org>
Fri, 11 Mar 2011 10:39:26 +0000 (05:39 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 27 Apr 2011 03:54:15 +0000 (23:54 -0400)
src/or/config.c

index bd904dcf0b249b514daa9741fff14b254ab1fd4b..404e648dba20a407611e08233329bf91ae8723a6 100644 (file)
@@ -3189,6 +3189,12 @@ options_validate(or_options_t *old_options, or_options_t *options,
     REJECT("Servers must be able to freely connect to the rest "
            "of the Internet, so they must not set UseBridges.");
 
+  /* If both of these are set, we'll end up with funny behavior where we
+   * demand enough entrynodes be up and running else we won't build
+   * circuits, yet we never actually use them. */
+  if (options->UseBridges && options->EntryNodes)
+    REJECT("You cannot set both UseBridges and EntryNodes.");
+
   options->_AllowInvalid = 0;
   if (options->AllowInvalidNodes) {
     SMARTLIST_FOREACH(options->AllowInvalidNodes, const char *, cp, {