From 86105a4009bf3e128abfa3e735d8fa6f1f4d5975 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Feb 2015 09:09:25 -0500 Subject: Check ENABLE_TOR2WEB_MODE before any tor2webmode code --- src/or/circuituse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or/circuituse.c') 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; -- cgit v1.2.3-54-g00ecf