]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
be willing to use nodes in excludeexitnodes as directory mirrors
authorRoger Dingledine <arma@torproject.org>
Tue, 24 Apr 2012 15:26:05 +0000 (11:26 -0400)
committerRoger Dingledine <arma@torproject.org>
Tue, 24 Apr 2012 15:26:05 +0000 (11:26 -0400)
fixes bug 5623.

changes/bug5623 [new file with mode: 0644]
src/or/connection_edge.c

diff --git a/changes/bug5623 b/changes/bug5623
new file mode 100644 (file)
index 0000000..285a5b1
--- /dev/null
@@ -0,0 +1,6 @@
+  o Minor bugfixes:
+    - After we pick a directory mirror, we would refuse to use it if
+      it's in our ExcludeExitNodes list, resulting in mysterious failures
+      to bootstrap for people who just wanted to avoid exiting from
+      certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
+
index dd772b22c60366839c26a3e1080bda12bc66605a..03558e557c908936ff05e2b9174c320c6cd3a234 100644 (file)
@@ -3368,8 +3368,12 @@ connection_ap_can_use_exit(const entry_connection_t *conn, const node_t *exit)
     }
   }
 
-  if (conn->socks_request->command == SOCKS_COMMAND_CONNECT &&
-      !conn->use_begindir) {
+  if (conn->use_begindir) {
+    /* Internal directory fetches do not count as exiting. */
+    return 1;
+  }
+
+  if (conn->socks_request->command == SOCKS_COMMAND_CONNECT) {
     struct in_addr in;
     tor_addr_t addr, *addrp = NULL;
     addr_policy_result_t r;