aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-19 09:09:25 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-19 09:09:25 -0500
commit86105a4009bf3e128abfa3e735d8fa6f1f4d5975 (patch)
treeaed21bc05c8d864f30ec5460f013f9c80ea8b1a6 /src/or/circuituse.c
parent0e22da1b8de0bc10ebe80eb00f9e848a392edbdd (diff)
downloadtor-86105a4009bf3e128abfa3e735d8fa6f1f4d5975.tar.gz
tor-86105a4009bf3e128abfa3e735d8fa6f1f4d5975.zip
Check ENABLE_TOR2WEB_MODE before any tor2webmode code
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index e11242a862..d0d31ad9cf 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -2036,11 +2036,13 @@ circuit_get_open_circ_or_launch(entry_connection_t *conn,
else
new_circ_purpose = desired_circuit_purpose;
+#ifdef ENABLE_TOR2WEB_MODE
if (options->Tor2webMode &&
(new_circ_purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND ||
new_circ_purpose == CIRCUIT_PURPOSE_C_INTRODUCING)) {
want_onehop = 1;
}
+#endif
{
int flags = CIRCLAUNCH_NEED_CAPACITY;