aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-21 21:49:36 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-21 21:49:36 +0000
commit4f13cb82fd9a49781a8c74ff6519e0a1e4027f95 (patch)
treec198744931e51aa3a09dbd16e48a67bb261b68a5 /src/or/circuituse.c
parent59f948722506b788c874a3372e339edb02006317 (diff)
downloadtor-4f13cb82fd9a49781a8c74ff6519e0a1e4027f95.tar.gz
tor-4f13cb82fd9a49781a8c74ff6519e0a1e4027f95.zip
r8881@Kushana: nickm | 2006-09-21 17:27:59 -0400
Allow resolve requests to non-exits when they are specifically requested (via resolve foo.bar.exit). svn:r8446
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 88b36a6e8f..74e6895946 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1225,7 +1225,8 @@ connection_ap_handshake_attach_circuit(edge_connection_t *conn)
}
return -1;
}
- if (!connection_ap_can_use_exit(conn, router)) {
+ if (conn->_base.purpose != EXIT_PURPOSE_RESOLVE &&
+ !connection_ap_can_use_exit(conn, router)) {
log_fn(opt ? LOG_INFO : LOG_WARN, LD_APP,
"Requested exit point '%s' would refuse request. %s.",
conn->chosen_exit_name, opt ? "Trying others" : "Closing");