]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
warn more about AllowSingleHopExits
authorRoger Dingledine <arma@torproject.org>
Tue, 16 Nov 2010 05:13:25 +0000 (00:13 -0500)
committerRoger Dingledine <arma@torproject.org>
Tue, 16 Nov 2010 05:13:25 +0000 (00:13 -0500)
ChangeLog
src/or/config.c

index 7f5e57adfefce1016a8c03306be069adeff984bb..dc961015a7389fe169d8726b6a3200b75118c7d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -68,6 +68,8 @@ Changes in version 0.2.2.18-alpha - 2010-11-16
       DHT. Implements ticket 2088.
     - Rate-limit the "your application is giving Tor only an IP address"
       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
+    - When you set AllowSingleHopExits, print a warning to explain why
+      most clients are avoiding your relay.
     - Update to the November 1 2010 Maxmind GeoLite Country database.
 
   o Code simplifications and refactoring:
index ebf4031ff4f1121786aa18982e38576520b64000..e3d5e606f90cc97994014d192c0b7ff251ba6822 100644 (file)
@@ -3626,6 +3626,13 @@ options_validate(or_options_t *old_options, or_options_t *options,
            "a non-default set of DirServers.");
   }
 
+  if (options->AllowSingleHopExits && !options->DirServers) {
+    COMPLAIN("You have set AllowSingleHopExits; now your relay will allow "
+             "others to make one-hop exits. However, since by default most "
+             "clients avoid relays that set this option, most clients will "
+             "ignore you.");
+  }
+
   /*XXXX022 checking for defaults manually like this is a bit fragile.*/
 
   /* Keep changes to hard-coded values synchronous to man page and default