summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-02-24 11:44:08 +0000
committerRoger Dingledine <arma@torproject.org>2005-02-24 11:44:08 +0000
commit5b24ca6cde6ce596fc69899f7bed7a77663da484 (patch)
tree53894a691f61c9fd4a6fc3efdbbda68b9e49b3d1 /src/or/relay.c
parent2ecd3ff709e6f3ee70ab82f892d6dd3bfb63c1df (diff)
downloadtor-5b24ca6cde6ce596fc69899f7bed7a77663da484.tar.gz
tor-5b24ca6cde6ce596fc69899f7bed7a77663da484.zip
cache .exit address better (i think)
svn:r3684
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 4029823c85..866c3d8757 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -518,7 +518,8 @@ connection_edge_process_relay_cell_not_open(
connection_mark_for_close(conn);
return 0;
}
- client_dns_set_addressmap(conn->socks_request->address, addr);
+ client_dns_set_addressmap(conn->socks_request->address, addr,
+ conn->chosen_exit_name);
/* check if he *ought* to have allowed it */
exitrouter = router_get_by_digest(circ->build_state->chosen_exit_digest);
@@ -591,7 +592,8 @@ connection_edge_process_relay_cell_not_open(
connection_mark_for_close(conn);
return 0;
}
- client_dns_set_addressmap(conn->socks_request->address, addr);
+ client_dns_set_addressmap(conn->socks_request->address, addr,
+ conn->chosen_exit_name);
}
circuit_log_path(LOG_INFO,circ);
connection_ap_handshake_socks_reply(conn, NULL, 0, 1);