diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-02-19 09:09:25 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-19 09:09:25 -0500 |
commit | 86105a4009bf3e128abfa3e735d8fa6f1f4d5975 (patch) | |
tree | aed21bc05c8d864f30ec5460f013f9c80ea8b1a6 /src/or/circuituse.c | |
parent | 0e22da1b8de0bc10ebe80eb00f9e848a392edbdd (diff) | |
download | tor-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.c | 2 |
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; |