diff options
author | Roger Dingledine <arma@torproject.org> | 2006-12-13 02:49:45 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-12-13 02:49:45 +0000 |
commit | 97c83a4c09417bd5124aec7008aa28e361ce40a6 (patch) | |
tree | 53ec0b3d8855d2c885fccc669fcf097d6c0ff9ea /src/or/connection_edge.c | |
parent | 0dbf725927c0b3a7f88b852b272573c91857be9b (diff) | |
download | tor-97c83a4c09417bd5124aec7008aa28e361ce40a6.tar.gz tor-97c83a4c09417bd5124aec7008aa28e361ce40a6.zip |
finish enabling begin-dir cells. require one-hop circs for
socks-command-connect-dir streams, so we don't open new anonymity
questions.
svn:r9099
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 7e6d23aeac..ad42e178d2 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1647,6 +1647,9 @@ connection_ap_handshake_send_begin(edge_connection_t *ap_conn, begin_type = ap_conn->socks_request->command == SOCKS_COMMAND_CONNECT ? RELAY_COMMAND_BEGIN : RELAY_COMMAND_BEGIN_DIR; + if (begin_type == RELAY_COMMAND_BEGIN) { + tor_assert(circ->build_state->onehop_tunnel == 0); + } if (connection_edge_send_command(ap_conn, TO_CIRCUIT(circ), begin_type, payload, payload_len, |