summaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-05 14:50:05 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-05 14:50:05 +0000
commitb5c8a6183ac00782c8b5133791ee566c85f8d35f (patch)
treefbdf7789f3619120c2b5f0f542d4ebf0edb697de /src/or/dnsserv.c
parent92b0fc2e5339dbf6cb7281915d89d73d78257022 (diff)
downloadtor-b5c8a6183ac00782c8b5133791ee566c85f8d35f.tar.gz
tor-b5c8a6183ac00782c8b5133791ee566c85f8d35f.zip
r13452@kushana: nickm | 2007-06-20 09:52:55 -0400
Patch from Robert Hogan: Generate STREAM NEW events for dnsport requests and tunneled directory connections. Log when we are testing for hijacking. svn:r10737
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index d0b1cdaab5..06014ce963 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -109,8 +109,6 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
return;
}
- /* XXXX020 Send a stream event to the controller. */
-
/* Make a new dummy AP connection, and attach the request to it. */
conn = TO_EDGE_CONN(connection_new(CONN_TYPE_AP, AF_INET));
conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT;
@@ -131,6 +129,8 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
connection_add(TO_CONN(conn));
+ control_event_stream_status(TO_CONN(conn), STREAM_EVENT_NEW, 0);
+
/* Now, throw the connection over to get rewritten (which will answer it
* immediately if it's in the cache, or completely bogus, or automapped),
* and then attached to a circuit. */