mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge branch 'teor_connection-with-client-v2_squashed'
This commit is contained in:
+8
-2
@@ -344,8 +344,14 @@ command_process_create_cell(cell_t *cell, channel_t *chan)
|
||||
int len;
|
||||
created_cell_t created_cell;
|
||||
|
||||
/* Make sure we never try to use the OR connection on which we
|
||||
* received this cell to satisfy an EXTEND request, */
|
||||
/* If the client used CREATE_FAST, it's probably a tor client or bridge
|
||||
* relay, and we must not use it for EXTEND requests (in most cases, we
|
||||
* won't have an authenticated peer ID for the extend).
|
||||
* Public relays on 0.2.9 and later will use CREATE_FAST if they have no
|
||||
* ntor onion key for this relay, but that should be a rare occurrence.
|
||||
* Clients on 0.3.1 and later avoid using CREATE_FAST as much as they can,
|
||||
* even during bootstrap, so the CREATE_FAST check is most accurate for
|
||||
* earlier tor client versions. */
|
||||
channel_mark_client(chan);
|
||||
|
||||
memset(&created_cell, 0, sizeof(created_cell));
|
||||
|
||||
Reference in New Issue
Block a user