summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-21 21:48:42 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-21 21:48:42 +0000
commit6a1746f98f58fd22dce2ce34840b10012b5467dd (patch)
treec841e8d0e7522e31543583c32cc4358a2dfcc6af /src/or/connection_edge.c
parentd273d529798e44c315c94437f27c3a1349794179 (diff)
downloadtor-6a1746f98f58fd22dce2ce34840b10012b5467dd.tar.gz
tor-6a1746f98f58fd22dce2ce34840b10012b5467dd.zip
r8877@Kushana: nickm | 2006-09-21 17:12:33 -0400
Consider non-exit servers unsuitable for RESOLVE commands. svn:r8442
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 4e5ee2fdd1..9e540596fc 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2082,6 +2082,10 @@ connection_ap_can_use_exit(edge_connection_t *conn, routerinfo_t *exit)
exit->exit_policy);
if (r == ADDR_POLICY_REJECTED || r == ADDR_POLICY_PROBABLY_REJECTED)
return 0;
+ } else {
+ /* Don't send DNS requests to non-exit servers by default. */
+ if (policy_is_reject_star(exit->exit_policy))
+ return 0;
}
return 1;
}