]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Avoid running DNS self-tests if we're operating as a bridge
authorwarms0x <warms0x@riseup.net>
Fri, 7 Oct 2011 07:04:29 +0000 (07:04 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 7 Oct 2011 16:18:26 +0000 (12:18 -0400)
changes/bug4201 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/bug4201 b/changes/bug4201
new file mode 100644 (file)
index 0000000..6f7d715
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Bridges now skip DNS self-tests, to act a little more stealthily.
+      Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
+      bridges. Patch by "warms0x".
+
index 289d805503f35811e2a8bb48958abffdee5625d1..95acea4f51235deabe4e4027d99252ac2670ea88 100644 (file)
@@ -1241,7 +1241,7 @@ run_scheduled_events(time_t now)
 
   /** 9. and if we're a server, check whether our DNS is telling stories to
    * us. */
-  if (is_server && time_to_check_for_correct_dns < now) {
+  if (public_server_mode(options) && time_to_check_for_correct_dns < now) {
     if (!time_to_check_for_correct_dns) {
       time_to_check_for_correct_dns = now + 60 + crypto_rand_int(120);
     } else {