diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-05 19:15:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-05 19:15:13 +0000 |
commit | 47ff0c7fc116a9f49c2a3a87928b38796a1e7c2f (patch) | |
tree | 89a8b2910465055591476d01520b54b3ad8a2fbf /src/or/relay.c | |
parent | f02be02356a6cedcec2b01d5046e5d5cba0797ad (diff) | |
download | tor-47ff0c7fc116a9f49c2a3a87928b38796a1e7c2f.tar.gz tor-47ff0c7fc116a9f49c2a3a87928b38796a1e7c2f.zip |
r11641@catbus: nickm | 2007-02-05 13:59:26 -0500
Add a REMAP state to stream events so that controllers can learn exactly when the target address for a stream has changed. May help Vidalia resolve confusions related to bug 375.
svn:r9484
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 1f0431f231..559d1f6433 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -750,8 +750,10 @@ connection_edge_process_end_not_open( router_parse_addr_policy_from_string("reject *:*", -1); } /* rewrite it to an IP if we learned one. */ - addressmap_rewrite(conn->socks_request->address, - sizeof(conn->socks_request->address)); + if (addressmap_rewrite(conn->socks_request->address, + sizeof(conn->socks_request->address))) { + control_event_stream_status(conn, STREAM_EVENT_REMAP, 0); + } if (conn->_base.chosen_exit_optional) { /* stop wanting a specific exit */ conn->_base.chosen_exit_optional = 0; |