]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Refuse to start if both ORPort and UseBridges are set. Bugfix
authorRoger Dingledine <arma@torproject.org>
Thu, 25 Oct 2007 04:40:27 +0000 (04:40 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 25 Oct 2007 04:40:27 +0000 (04:40 +0000)
on 0.2.0.x.

svn:r12182

ChangeLog
src/or/config.c

index 5a6f5ed220cd6bf217f9377a7752d48784a30b5e..4d28788d1431ed63e5a7911d4c8a2e51a8810f67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Changes in version 0.2.0.10-alpha - 2007-1?-??
+  o Minor bugfixes:
+    - Refuse to start if both ORPort and UseBridges are set. Bugfix
+      on 0.2.0.x.
+
+
 Changes in version 0.2.0.9-alpha - 2007-10-24
   o Major features (directory system):
     - Clients now download v3 consensus networkstatus documents instead
index b4d7e3e87ac4e08c01cfd32ecd58245d0d34c70b..9997bfbe0ee0e85a323ecc68b7abc514c69ffd4d 100644 (file)
@@ -2780,6 +2780,11 @@ options_validate(or_options_t *old_options, or_options_t *options,
            "of the Internet, so they must not set Reachable*Addresses "
            "or FascistFirewall.");
 
+  if (options->UseBridges &&
+      server_mode(options))
+    REJECT("Servers must be able to freely connect to the rest "
+           "of the Internet, so they must not set UseBridges.");
+
   options->_AllowInvalid = 0;
   if (options->AllowInvalidNodes) {
     SMARTLIST_FOREACH(options->AllowInvalidNodes, const char *, cp, {