aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-01-25 20:18:51 -0500
committerAndrea Shepard <andrea@torproject.org>2013-02-02 08:04:20 -0800
commita8297cdbd3324ac707165ae9922ecf478c4608a1 (patch)
tree921123e6fd3e8b2838c9256579c52f49ec084805 /src/or/circuitbuild.c
parentacb43c0735af8a7cd9e8eb57bb8835b11a90a1be (diff)
downloadtor-a8297cdbd3324ac707165ae9922ecf478c4608a1.tar
tor-a8297cdbd3324ac707165ae9922ecf478c4608a1.tar.gz
use microdescriptors if *any* of our bridges can handle them
Now as we move into a future where most bridges can handle microdescs we will generally find ourselves using them, rather than holding back just because one of our bridges doesn't use them.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 5a5a3afea..8c86aac90 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -25,6 +25,7 @@
#include "directory.h"
#include "entrynodes.h"
#include "main.h"
+#include "microdesc.h"
#include "networkstatus.h"
#include "nodelist.h"
#include "onion.h"
@@ -3372,7 +3373,7 @@ choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state)
(purpose != CIRCUIT_PURPOSE_TESTING || options->BridgeRelay)) {
/* This request is for an entry server to use for a regular circuit,
* and we use entry guard nodes. Just return one of the guard nodes. */
- return choose_random_entry(state);
+ return choose_random_entry(state, 0);
}
excluded = smartlist_new();