summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2017-12-02 02:28:16 +0000
committerMike Perry <mikeperry-git@torproject.org>2018-01-19 22:21:48 +0000
commit86ee771c28777141ee5eec30fa9739a7cec32981 (patch)
tree039b7b171a38052c4fae2e92b3b4de7a46c453a4 /src/or/connection_edge.c
parent20a3f611057cb81c489ccf9d40438bc5d930d766 (diff)
downloadtor-86ee771c28777141ee5eec30fa9739a7cec32981.tar.gz
tor-86ee771c28777141ee5eec30fa9739a7cec32981.zip
Add new circuit purposes for hsdir activity.
This lets us control their path len and usage.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 0c4352ea13..4021ca9e0c 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2592,6 +2592,8 @@ connection_ap_supports_optimistic_data(const entry_connection_t *conn)
if (edge_conn->on_circuit == NULL ||
edge_conn->on_circuit->state != CIRCUIT_STATE_OPEN ||
(edge_conn->on_circuit->purpose != CIRCUIT_PURPOSE_C_GENERAL &&
+ edge_conn->on_circuit->purpose != CIRCUIT_PURPOSE_C_HSDIR_GET &&
+ edge_conn->on_circuit->purpose != CIRCUIT_PURPOSE_S_HSDIR_POST &&
edge_conn->on_circuit->purpose != CIRCUIT_PURPOSE_C_REND_JOINED))
return 0;