diff options
author | Neel Chauhan <neel@neelc.org> | 2021-01-19 14:51:00 -0800 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-02-08 10:23:41 -0500 |
commit | 2391c60c5c89b104572323a439e3560a09c1a6e2 (patch) | |
tree | 09374510094b2f87717c1535272db4409474deea /src/core/or/circuituse.c | |
parent | b0af4ddc7c2fe80a79e41e31b7050d949561e044 (diff) | |
download | tor-2391c60c5c89b104572323a439e3560a09c1a6e2.tar.gz tor-2391c60c5c89b104572323a439e3560a09c1a6e2.zip |
Add stream ID to ADDRMAP control event
Diffstat (limited to 'src/core/or/circuituse.c')
-rw-r--r-- | src/core/or/circuituse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c index 0f3fc29361..018654769d 100644 --- a/src/core/or/circuituse.c +++ b/src/core/or/circuituse.c @@ -2733,6 +2733,11 @@ consider_recording_trackhost(const entry_connection_t *conn, const or_options_t *options = get_options(); char *new_address = NULL; char fp[HEX_DIGEST_LEN+1]; + uint64_t stream_id = 0; + + if (conn) { + stream_id = ENTRY_TO_CONN(conn)->global_identifier; + } /* Search the addressmap for this conn's destination. */ /* If they're not in the address map.. */ @@ -2756,7 +2761,7 @@ consider_recording_trackhost(const entry_connection_t *conn, addressmap_register(conn->socks_request->address, new_address, time(NULL) + options->TrackHostExitsExpire, - ADDRMAPSRC_TRACKEXIT, 0, 0); + ADDRMAPSRC_TRACKEXIT, 0, 0, stream_id); } /** Attempt to attach the connection <b>conn</b> to <b>circ</b>, and send a |