summaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-05 20:54:49 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-05 20:54:49 +0000
commit210beff55a17643d54c0d7142d9662a97d8fd51d (patch)
tree7457ff86164ff36dc8df3e0a14c6abf4998d76f8 /src/or/dnsserv.c
parentf0345d46f6372a56c586a05d1a714473eaeccc27 (diff)
downloadtor-210beff55a17643d54c0d7142d9662a97d8fd51d.tar.gz
tor-210beff55a17643d54c0d7142d9662a97d8fd51d.zip
r13266@catbus: nickm | 2007-06-05 16:38:08 -0400
Patch from peter palfrader: control interface via unix domain socket svn:r10504
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index 2949882cbe..ee3cd473cf 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -110,7 +110,7 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
/* 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));
+ conn = TO_EDGE_CONN(connection_new(CONN_TYPE_AP, AF_INET));
conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT;
if (q->type == EVDNS_TYPE_A)
conn->socks_request->command = SOCKS_COMMAND_RESOLVE;